Re: [PHP] Months...Problem..

2001-01-12 Thread Hrishi
ok, here DATE_ADD(date,INTERVAL expr type) and here http://www.mysql.com/doc/D/a/Date_and_time_functions.html --- Yeah, there are more important things in life than money, but they won't go out with you if you don't have any. - Original Message

Re: [PHP] Months...Problem..

2001-01-12 Thread Hrishi
try using the date_* functions in mysql its somewhere in the manual reference section, date and time functions. --- Yeah, there are more important things in life than money, but they won't go out with you if you don't have any. - Original Message -

[PHP] Months...Problem..

2001-01-12 Thread Dhaval Desai
Hiee! I am having a problem with months...count in a mysql database.. See what I want is 1st column will have the current date.. 2nd column will add 7 to the current date and store it. This will be for all the 12 months.. So I want the things to happen automatically..I mean one script whic

[PHP] Problem building php 3.0.18

2001-01-12 Thread Michael A. Peters
Howdy- I'm having a slight problem when attempting to build php 3.0.18 First of all I'd like to say the rpm spec file I inherited for this is a mess- I may clean it up (likely start from scratch...), but the spec file I'm using isn't the issue. mod_php builds just dandy- but I get bad linking e

[PHP] ereg works in .php, not in .inc

2001-01-12 Thread Ted Goranson
Friends-- I have a script that processes another script for display. I change all variables named similar to "$Help1x1" to Help: The following line accomplishes this readily when used in a .php suffixed script when called directly from browser. $content = ereg_replace ("[\$]Help[0-9]x[a-z]? =

[PHP] session_start() doesn't reset session.cookie_lifetime?

2001-01-12 Thread Chris Carbaugh
Let's say session.cookie_lifetime = 30; this of course kills the session 30 seconds after it was created. Is there a way to have every session_start() 'renew' the life of the clients cookie? Meaning the session would expire 30 seconds after the LAST session_start() call. My goal is to have m

Re: [PHP] mixing HTML and PHP code

2001-01-12 Thread Jade Ohlhauser
thanks I haven't thought about sharing the code, but it would be easy because our code is as abstract as possible. In fact there a few files which contain most of the "HTML replacements" that can be used on basically any site without modification. I'm too busy at the moment, I think I'll package

RE: [PHP] mixing HTML and PHP code

2001-01-12 Thread Cal Evans
HAR! :) cal -Original Message- From: Tim Zickus [mailto:[EMAIL PROTECTED]] Sent: Friday, January 12, 2001 6:22 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] mixing HTML and PHP code > that's why I didn't implement one of those keyword things in binarycloud. > ergh. Pretty soon we're go

[PHP] backdoor in InterBase

2001-01-12 Thread Cynic
* Borland Interbase Server Contains Backdoor Account http://www.windowsitsecurity.com/articles/index.cfm?articleID=16566 fixes for Windows, Linux, Solaris, HP-UX and SCO available at http://www.borland.com/interbase/downloads/patches.html __

Re: [PHP] Problem with Exec()

2001-01-12 Thread Sterling Hughes
It should also be noted that the system interaction functions (namely, passthru(), exec(), system() and popen()) are broken/incorrectly implemented, actually, its windows that's incorrectly implemented, but be that as it may, the functions do not work with windows). To the original poster:

Re: [PHP] mixing HTML and PHP code

2001-01-12 Thread Tim Zickus
> Well, even if it wouldn't be that much of a problem, it still is easier with > templates. As you admitted, doing it with templates is cleaner, on the HTML > part. This can be important, if when you change layout often and have to > work with designers. Amen. :) Some of the HTML folks I deal wi

RE: [PHP] regex

2001-01-12 Thread Cynic
Oh, of course: $result = preg_replace( $p , $r , $s ) ; But you have probably already figured that. At 01:28 13.1. 2001, Cynic wrote the following: -- >try this: > >$s = file( 'mylisting.txt' ); >$r = "\\1\t\\2\t\\3" ; >$p = '~^(.*)\0

Re: [PHP] Problem with Exec()

2001-01-12 Thread Richard Lynch
First, make sure that sendmail is something the iUSR_machinename can run -- Just because you logged in as you can run it doesn't mean that the user that Apache/PHP is running as can run it. Next, forget about that goofy DOS backslash thing. Just use "/" for your paths. Finally, add the optional

Re: [PHP] where does "MAKE INSTALL" put PHP things?

2001-01-12 Thread Richard Lynch
It tells you as it does it... The default is, I think, the modules directory in your apache directory for the .so, and /usr/local/lib/ for the php.ini You can alter it using --with-prefix or somesuch. ./configure --help | less - Original Message - From: Derek Sivers <[EMAIL PROTECTED]

Re: [PHP] mixing HTML and PHP code

2001-01-12 Thread Alexander Wagner
Alex Black wrote: > Speaking as a not-pot-smoking mac-using only partially hippie web designer: > > why bother with creating your own syntax? > > why not just explain some _super_basic_ php syntax to the "html dude" and > have him do the code himself? > > also, dreamweaver nicely ignores Actuall

[PHP] session cookie authentication

2001-01-12 Thread Gabe Anzelini
is it possible to write a script that can screen scrape a site that uses session cookies for authentication? the reasoning for this is so that i can add check boxes to a list so i can reset more then one port on my isp router at a time. thanks -- PHP General Mailing List (http://www.php.net/)

Re: [PHP] mixing HTML and PHP code

2001-01-12 Thread Alexander Wagner
Alex Black wrote: > >> part of the point was for _PHP_ to be embedded html, in my opinion your > > > > It was created that way. It still is possible. Is can be quite handy, > > sometimes (or often, depends on what you do). That doesn't mean you have > > to use it. > > I'm not implying that there a

RE: [PHP] regex

2001-01-12 Thread Cynic
try this: $s = file( 'mylisting.txt' ); $r = "\\1\t\\2\t\\3" ; $p = '~^(.*)\040+(?=\d)(\d+-\d+)(?<=\d)\040+(.*)$~Ui' ; you might want to limit the possible appearance of the phone numbers more strictly. At 00:44 13.1. 2001, Jerry Lake wrote the following: --

Re: [PHP] mixing HTML and PHP code

2001-01-12 Thread Tim Zickus
> that's why I didn't implement one of those keyword things in binarycloud. > ergh. Pretty soon we're going to have to start limiting you to only mentioning binarycloud 2 times per hour or less. :-) :-) - Tim -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PRO

[PHP] APC bugfix release 1.0.2

2001-01-12 Thread Daniel Cowgill
This version fixes at least one show-stopper bug: * default values for class member data would cause the webserver to abort And there is a possible fix for the BC math library problems that some people have reported. APC now compiles on Solaris 8. Due to the severity of the class-related bug f

Re: [PHP] mixing HTML and PHP code

2001-01-12 Thread Tim Zickus
> why bother with creating your own syntax? > why not just explain some _super_basic_ php syntax to the "html dude" and > have him do the code himself? Cause we like it better that way. :) Any time you're mixing code and HTML you're asking for trouble, IMHO. Or at least working a lot harder th

Re: [PHP] Dir Help PLEASE

2001-01-12 Thread nospam
-- If it can be dreamt, it can be build "Chris" <[EMAIL PROTECTED]> wrote in message 001f01c07c3b$fc965840$8a1412d1@chris">news:001f01c07c3b$fc965840$8a1412d1@chris... 2 things, first how do I give something the filepath of a folder that proceeded it? Also, how can I set up subdomains like sub

[PHP] Templates

2001-01-12 Thread PeterOblivion
I looked around the web for templates and founf FastTemplates. Not exactly what i was looking for thoug lets say I have $file = "111" and there is a template "template.txt" and it contains "file #$file is blahlah" how can I make that a template? Thanks - Peter -- PHP General Mailing List (h

php-general Digest 13 Jan 2001 00:13:41 -0000 Issue 451

2001-01-12 Thread php-general-digest-help
php-general Digest 13 Jan 2001 00:13:41 - Issue 451 Topics (messages 34235 through 34330): Urgent - Special Characters 34235 by: TV Karthick Kumar Re: Question 34236 by: Johan Holst Nielsen 34238 by: Cynic 34240 by: Johan Holst Nielsen Re: Urgent: Special C

Re: [PHP] How do I store a pic?

2001-01-12 Thread Shane McBride
Kenneth, I store the path to the image in the table. I am unsure if you can actually write an image to a table. When the item is deleted, I run an "exec" command to remove the actual file. Here's some snippets: The actual html to create the upload file text box within a : This is the

Re: [PHP] Special Characters

2001-01-12 Thread Alex Black
eh? check out htmlspecialchars() (I think that's right, from memory) it basically lets you fuggeddaboutit. -a -- Alex Black, Head Monkey [EMAIL PROTECTED] The Turing Studio, Inc. http://www.turingstudio.com vox+510.666.0074 fax+510.666.0093 Saul Zaentz Film Center 2600 Tenth St Suite 433

Re: [PHP] apple-macintosh

2001-01-12 Thread Alex Black
pardon. sorry original poster. rhapsody... I had completely forgotten it exists :) -a -- Alex Black, Head Monkey [EMAIL PROTECTED] The Turing Studio, Inc. http://www.turingstudio.com vox+510.666.0074 fax+510.666.0093 Saul Zaentz Film Center 2600 Tenth St Suite 433 Berkeley, CA 94710-2522

Re: [PHP] Script execution Speed

2001-01-12 Thread Alex Black
sort of. if you will always need the same functions for every page, it is probably faster to put them all in one file (where pure speed is concerned) in binarycloud, everything that makes sense to logically separate into separate files. I though that would be kind of "ok" re speed until zend ca

Re: [PHP] mixing HTML and PHP code

2001-01-12 Thread Alex Black
> > {:each:output} > > {output}{more_output} > > {:next:more_output} > {:end} > > > Even a pot-smoking mac-using hippie web designer can understand that. :-) > And it's readable in Dreamweaver or GoLive or any of those visual HTML > tools. For Dreamweaver I added a little custom definition t

Re: [PHP] mixing HTML and PHP code

2001-01-12 Thread Alex Black
> connect_to_database(); > parse_query(); > execute_query(); > > echo ""; > > while (fetch_row_from_query()) > { > $output = data_from_fetched_row(); > $more_output = more_data_from_fetched_row(); > > echo " $output $more_output "; > > } > echo ""; > ?> Well, this may be a bit specific, but

RE: [PHP] regex

2001-01-12 Thread Jerry Lake
Bolgrihn Michael555-5566142 Hillyer St Oxford Bollenbach Gary V 555-5078315 Freedom Rd Oxford Bonaguidi Daniel555-5155N4663 10th Av Montello Bonnett Agatha & John 555-5363547 Fawn Ct Oxford Bonnett Bernard & Norma 555-4360116

Re: [PHP] on style (was mixing PHP and HTML code)

2001-01-12 Thread Alex Black
actually, that's a good separate point: I dislike the PEAR coding standard's inflexibility. I _fully_ dig coding standards, but that feels a little too "iron fisted" to me... who cares if someone uses 4 spaces instead of a tab? hopefully I'm not putting my foot in my mouth and have that somewher

Re: [PHP] mixing HTML and PHP code

2001-01-12 Thread Alex Black
> That I prefer to call it "investment" instead of overhead because it has > given us a system we vastly prefer. hehe, I like that. I still disagree, but that was good :) >> by all means use whatever techniques you like in-house, but that would be >> completely useless to someone in the "outside

Re: [PHP] mixing HTML and PHP code

2001-01-12 Thread Alex Black
yeah, but it's good to agree on something so that people can use each other's code... -- Alex Black, Head Monkey [EMAIL PROTECTED] The Turing Studio, Inc. http://www.turingstudio.com vox+510.666.0074 fax+510.666.0093 Saul Zaentz Film Center 2600 Tenth St Suite 433 Berkeley, CA 94710-2522

Re: [PHP] mixing HTML and PHP code

2001-01-12 Thread Alex Black
>> and the problem with that, is you're not paring tons of html through a >> search-replace function, which also created unnecessary overheead, and > > You have a point here. Template-systems are slow. yeppers... that's why I didn't implement one of those keyword things in binarycloud. ergh. >

Re: [PHP] Simple form not passing variables, Why??

2001-01-12 Thread Cynic
you have register_globals off in your php.ini or httpd.conf or .htaccess. either use $HTTP_GET_VARS['name'] or turn the setting on. At 00:36 13.1. 2001, jeff fitzmyers wrote the following: -- >The code below does not work. What could

RE: [PHP] regex

2001-01-12 Thread Cynic
looks like you need to find all the spaces _before_ the _first_ digit on the row, and _after_ the _last_ digit on the row. does that fit your data? are there no other numbers than the telephone ones? At 00:29 13.1. 2001, Jerry Lake wrote the following: -

[PHP] Simple form not passing variables, Why??

2001-01-12 Thread jeff fitzmyers
The code below does not work. What could be causing this?? php pages do come up, and I can retrieve SQL data. The header seems okay: test.php?name=Bob and if I define a variable on the same page I can use it. Please enter user name here: you typed: Linux 2.2.14 PHP/4.0.3pl1 './confi

Re: [PHP] Script execution Speed

2001-01-12 Thread Cynic
depends on the underlying FS - you might find yourself bitten by disk hits that could've been avoided... How about writing a small test suite and benching the server? At 00:29 13.1. 2001, Randy Johnson wrote the following: -- >Is it

RE: [PHP] regex

2001-01-12 Thread Jerry Lake
I have a small phone directory bust the name listings are combined for example Schwartz Bob & Amelia 555-1212Oxford Scirkin Bill555-1213Brooks I need to add a tab or a comma after the lastname so I can have as a separate field when I dump it into MySQL and there is about 350

[PHP] Script execution Speed

2001-01-12 Thread Randy Johnson
Is it faster and more efficient to have smaller scripts that only do one specific thing when it is executed or can I have a script perform to different tasks based on a variable sent to it? It will be a high user website so I am thinking that the smaller the script the better? Am I right? Randy

Re: [PHP] regex

2001-01-12 Thread Steve Edberg
At 02:54 PM 1/12/01 , Jerry Lake wrote: >is it possible with regex to >change one or more text characters >followed by a space into the same >characters followed by a tab? > >Jerry Lake For example - $NewString = ereg_replace("([[:alpha:]]+) ", "\\1".chr(9), $String); This will conver

RE: [PHP] regex

2001-01-12 Thread Cynic
depends. is the set of strings preceeding the space limited and known, or is it something like [^abc]{3,12} ? At 00:13 13.1. 2001, Jerry Lake wrote the following: -- >and how would I go about that? > >Jerry Lake > >-Original Messa

RE: [PHP] regex

2001-01-12 Thread Jerry Lake
and how would I go about that? Jerry Lake -Original Message- From: Cynic [mailto:[EMAIL PROTECTED]] Sent: Friday, January 12, 2001 3:10 PM To: Jerry Lake; [EMAIL PROTECTED] Subject: Re: [PHP] regex yes At 23:54 12.1. 2001, Jerry Lake wrote the following: --

[PHP] Sessions

2001-01-12 Thread Randy Johnson
Hello, I was going to use sessions to save a logged in variable so if the user logged in with a username and password I checked for the session variable and if it existed then I could continue. Is there a way for the loggedin session variable to automatically be destroyed after 5 minutes for exa

Re: [PHP] regex

2001-01-12 Thread Cynic
yes At 23:54 12.1. 2001, Jerry Lake wrote the following: -- >is it possible with regex to >change one or more text characters >followed by a space into the same >characters followed by a tab? > >Jerry Lake > > >-- >PHP General Mailing

[PHP-CVS] cvs: php4 /pear/XML Render.php

2001-01-12 Thread Sean Grimes
metallicFri Jan 12 15:01:19 2001 EDT Added files: /php4/pear/XML Render.php Log: Adding Render.php, which helps render documents from XML files. Index: php4/pear/XML/Render.php +++ php4/pear/XML/Render.php http://www.php.net/license/2_02.txt

[PHP-CVS] cvs: php4 /pear/XML/Render render.php

2001-01-12 Thread Sean Grimes
metallicFri Jan 12 14:55:13 2001 EDT Removed files: /php4/pear/XML/Render render.php Log: # Correcting the directory structure -- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands,

[PHP] regex

2001-01-12 Thread Jerry Lake
is it possible with regex to change one or more text characters followed by a space into the same characters followed by a tab? Jerry Lake -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact

[PHP] HTTP_REFERER not giving proper results

2001-01-12 Thread Chakravarthy K Sannedhi
PHP gurus, I am having a page named scene1.php, which got link to playvoice.php, one drop down list box and a submit button. I will try to explain what i want from this page as much clearly as possible with the following points. 1. Scene1.php appears on the user screen after it gets redirected fr

[PHP] PHP 4.0.4pl1 as CGI

2001-01-12 Thread Devin Atencio
I am trying to get PHP 4.0.4pl1 to run on my FreeBSD 3.4-STABLE box and every time I run the binary file and do "./php -v" it core dumps and gives me "Floating Point Exception" error. It does this as well on my FreeBSD 3.5-STABLE boxes. I tried 3 machines and the same thing happens on all 3 of th

[PHP] PHP 4.0.4pl1 as CGI

2001-01-12 Thread Devin Atencio
I am trying to compile PHP 4.0.4pl1 as a CGI on my FreeBSD 3.4-STABLE box and I seem to be having problems for some reason. My configure line reads: /'^'\ ( o o ) ---

[PHP] mysql php4.04 and safe_mode

2001-01-12 Thread andreas \(@work\)
hi list, sorry, but we cant manage a Load Data Infile cause we always get: Can't get stat of '/tmp/phpNNAQSM' (Errcode: 2) OUR Code is working fine in different project where safe_mode = OFF = heres the line where we try to move the file to a webfolder in our

[PHP] APC cache and Solaris

2001-01-12 Thread George Schlossnagle
Hi Monte, I saw your post on php-general. I don't have access to a Solaris7 box, but to get the shm version to compile under Solaris8, just make the following change to apc_sem.c: 17:10:57(root@bp6)> diff apc_sem.c apc_sem.c.new 33c33 < #ifdef APC_HOST_LINUX --- > #ifndef APC_HOST_BSD

[PHP-CVS] cvs: php4 /ext/ldap ldap.c

2001-01-12 Thread Stig Venaas
venaas Fri Jan 12 14:08:26 2001 EDT Modified files: /php4/ext/ldap ldap.c Log: Added parallel search when given array of link identifiers @- Made ldap_list(), ldap_read() and ldap_search() do parallel search when @ first parameter is an array of link id

[PHP-CVS] cvs: CVSROOT / checkoutlist

2001-01-12 Thread Jim Winstead
jimwFri Jan 12 13:52:15 2001 EDT Modified files: /CVSROOTcheckoutlist Log: should check out cvs_acls file into CVSROOT Index: CVSROOT/checkoutlist diff -u CVSROOT/checkoutlist:1.6 CVSROOT/checkoutlist:1.7 --- CVSROOT/checkoutlist:1.6Sun Jan 7 20:51

[PHP] WinHelp Documentation Uploaded

2001-01-12 Thread Derick Rethans
Hello, I just added the translated versions of the manual in WinHelp format to http://www.php.net/docs.php I hope you all find it usefull. Regards, Derick Rethans - PHP: Scripting the Web - www.php.net - [EMAIL PROTECTED

Re: [PHP] mixing HTML and PHP code

2001-01-12 Thread Tim Zickus
In Dreamtime, we'd just have a template that looks like this: {:each:output} {output}{more_output} {:next:more_output} {:end} Even a pot-smoking mac-using hippie web designer can understand that. :-) And it's readable in Dreamweaver or GoLive or any of those visual HTML tools. Fo

[PHP] How do I store a pic?

2001-01-12 Thread Kenneth R Zink II
How do I store a jpg within a table? I want for a user to be able to pull a jpg from either their HD and store it in a table with some other information for a classifieds section. That way when the ad is deleted, the picture goes with it instead of remaining on my HD. Kenneth R Zink II [EMA

RE: [PHP] mixing HTML and PHP code

2001-01-12 Thread Mark Maggelet
I think you missed something: tell me that's not easier on your eyes :) Another nice thing about doing it this way is you can work with a web designer who uses a visual tool like dreamweaver. On Fri, 12 Jan 2001 22:10:08 +0100, MR ([EMAIL PROTECTED]) wrote: >Alex B

RE: [PHP] mixing HTML and PHP code

2001-01-12 Thread MR
Alex Black ... > > > is really not that much harder to write. > > html people can ignore it, php can find their code, and those that know both > can reap the benefits. > > what about loops? You mean that this code "; while (fetch_row_from_query()) { $output = data_from_fetched_row();

[PHP] CodeCharge

2001-01-12 Thread Jerry Lake
Does anyone know if CodeCharge create SQL dump files as well as the code, or do you have to create them for your specific needs? Jerry Lake -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact

Re: [PHP] on style (was mixing PHP and HTML code)

2001-01-12 Thread Mark Maggelet
>i do think that the code standard has some good elements to it, but >it goes >too far to specify a 4-space indent and to specify no spaces within >if >(condition) statements. I don't think it goes too far (I think it should be 3 spaces tho), but until the php guys publish some official style gu

[PHP-CVS] cvs: php4 /ext/standard http_fopen_wrapper.c

2001-01-12 Thread Stig Venaas
venaas Fri Jan 12 12:49:25 2001 EDT Modified files: /php4/ext/standard http_fopen_wrapper.c Log: Follows redirects again, and $http_response_header now contains all headers with an empty string as delimiter @- Made fopen() of HTTP URL follow redirects, $http

[PHP] Forms with Field Arrays and JavaScript

2001-01-12 Thread Diego Fulgueira
Hi! I was wondering if someone knows, or can think of a way to go around this problem i have. The thing is i am working with a form with a field array. Each field is something like: When i receive the posted data, I can access the "myfields" array. This is fine. The problem is within my form i

[PHP] odbc_* <-> MyODBC <-> MySQL

2001-01-12 Thread Cynic
Just curious. I tried accessing MySQL through ODBC using a system DSN (MyODBC driver ver. myodbc-2.50.36-nt.zip) and a script as simple as this one crashes Apache at the odbc_fetch_row() call. I actually don't know much about ODBC related stuff inside PHP... or generally, for that matter, so I

[PHP] on style (was mixing PHP and HTML code)

2001-01-12 Thread DanO
the main reason to follow guidelines like this is to make your code legible and modifiable. i come to PHP from HTML via Perl/CGI, and have inherited some nasty code on sites i have worked on. i've always appreciated code that is structurally formatted. Perl is notorious for its intrinsic flexi

RE: [PHP] mixing HTML and PHP code

2001-01-12 Thread MR
Christian Reiniger ... > One reason why I don't like the "echo" route: I lose the syntax > highlighting for the HTML that way. String constants should be > highlighted as, well, string constants normally, but when they contain > HTML code that's just plain ugly. Well, that's the point about usin

Re: [PHP] mixing HTML and PHP code

2001-01-12 Thread Jade Ohlhauser
> that may work for you, but it created a lot of overhead in your > applications, and anyone that doesn't know about you special "html api" will > be screwed... That I prefer to call it "investment" instead of overhead because it has given us a system we vastly prefer. > by all means use whateve

Re: [PHP] session vars with recursive form

2001-01-12 Thread bill
O.K., this seems to work: --- $thevals=array(alpha,beta,gamma,delta,epsilon); while (list($key, $val) = each($thevals)) { if ($HTTP_POST_VARS["$val"] && (!session_is_registered("$val"))) { session_register("$val"); } } --- bill wrote: > How can I correctl

[PHP-CVS] cvs: php4 /pear/XML/Render render.php

2001-01-12 Thread Sean Grimes
metallicFri Jan 12 11:44:25 2001 EDT Added files: /php4/pear/XML/Render render.php Log: This rendering class is *very* incomplete. Comments are welcome Index: php4/pear/XML/Render/render.php +++ php4/pear/XML/Render/render.php http://www.ph

Re: [PHP]

2001-01-12 Thread Jim Winstead
In article , [EMAIL PROTECTED] wrote: > when was http://cvs.php.net/viewcvs.cgi/php3/language-scanner.lex.diff?r1=1.3&r2=1.4 http://cvs.php.net/viewcvs.cgi/php3/language-scanner.lex.diff?r1=1.6&r2=1.7 jim -- PHP General Mailing List (http://

Re: [PHP] mixing HTML and PHP code

2001-01-12 Thread Mark Maggelet
>http://www.binarycloud.com/code_standard.html >> http://marc.theaimsgroup.com/?l=php-pear&m=97603413001842&w=2 >> Best Practices: PHP Coding Style : >> http://phpbuilder.com/columns/tim20010101.php3 >> Smart Architectures in PHP : >> http://phpbuilder.com/

RE: [PHP] session vars with recursive form

2001-01-12 Thread Javier Muniz
This is probably due to the fact that form values don't override session values... this is a feature, not a bug. (imagine if i could do: http://www.yourdomain.com/highsecurity.php?user=admin and magically become admin... very broken security) -jm -Original Message- From: bill [mailto:[E

[PHP] session vars with recursive form

2001-01-12 Thread bill
How can I correctly register session vars on a recursive form? If I call a page repeatedly using: The earlier variables keep getting lost. How can I register the session variables correctly? Each subsequent page should set its own variable while remembering all those previously set. Right n

[PHP] advise (MyCart)

2001-01-12 Thread Jerry Lake
I'm currently working on an installation of rosenet's MyCart and I am curious if anyone has used this cart and modified it to include product options, size color etc.. my intended end product is an online ordering system for a pizza place, so essentially my options will be pizza sizes and toppings

Re: [PHP] mixing HTML and PHP code

2001-01-12 Thread Alexander Wagner
Alex Black wrote: > > > > and the problem with that, is you're not paring tons of html through a > search-replace function, which also created unnecessary overheead, and You have a point here. Template-systems are slow. > forces you (once again) to make a spec that says "here's how this templat

Re: [PHP] PHP mungin $xx when returned from a DB.

2001-01-12 Thread Cameron Watters -- List Subscriptions
Sorry bout that. Fixed it myself. This is the preg_replace bug w/ $ that hit the list a while ago. Template engine uses preg_replace. -c > Ok, > > I recently upgraded to 4.0.4 (i am aware that pl1 is out, but there is no > note of the fix in NEWS). > > Since that upgrade, when returning data f

[PHP-CVS] cvs: CVSROOT / avail gen_acl_file.m4

2001-01-12 Thread Rasmus Lerdorf
rasmus Fri Jan 12 10:27:59 2001 EDT Modified files: /CVSROOTavail gen_acl_file.m4 Log: More karma for Jon Index: CVSROOT/avail diff -u CVSROOT/avail:1.32 CVSROOT/avail:1.33 --- CVSROOT/avail:1.32 Thu Jan 11 22:15:30 2001 +++ CVSROOT/avail Fri Jan

Re: [PHP] mixing HTML and PHP code

2001-01-12 Thread Alex Black
> or more like : > > > > > Name : > $name = 'johnny'; > echo $name; ?> > > > Title : > $title = 'smith'; > echo $title; ?> > > > yes, uhhzakkly :) > > --- > Yeah, there are more important things in life than money, but they won't go > out with

Re: [PHP] Re: APC Cache and eval()

2001-01-12 Thread George Schlossnagle
Guess I should look at the code/try it out before I respond to things. :) eval()'d code works fine, though it won't be cached (the file calling it will be of course, but no eval()'d bit won't be.) Michael Kimsal wrote: > > You mean 'eval' doesn't work at all, or doing an 'eval' on a particul

Re: [PHP] mixing HTML and PHP code

2001-01-12 Thread Alex Black
> Coding standards are being created (via PEAR) and a few recent articles > exist but point is we're teaching differently, everywhere. PHP is loose > as a goose! print 'foo'; print("foo"); print "foo"; printf("%s","foo"); > ... all being taught, all being read, all being (mis)used. ! http://w

Re: [PHP] Re: APC Cache and eval()

2001-01-12 Thread George Schlossnagle
No idea. :) Haven't tried it. I'll check and write back to the list. Michael Kimsal wrote: > > You mean 'eval' doesn't work at all, or doing an 'eval' on a particular > file? > > George Schlossnagle wrote: > > > Haven't tried it. My guess is that it doesn't work, but could be made > > to.

Re: [PHP] mixing HTML and PHP code

2001-01-12 Thread Alex Black
> No. > > > > makes the code usable, and your HTML can even be edited with a > graphical HTML-editor. > > There is no reason to mix up HTML and PHP, except for very small > projects. > > regards > Wagner and the problem with that, is you're not paring tons of html through a search-replace fu

Re: [PHP] mixing HTML and PHP code

2001-01-12 Thread Alex Black
that may work for you, but it created a lot of overhead in your applications, and anyone that doesn't know about you special "html api" will be screwed... by all means use whatever techniques you like in-house, but that would be completely useless to someone in the "outside world" -alex > (comm

RE: [PHP] Question about phpinfo() and XML

2001-01-12 Thread Moritz Petersen
grrr. XML means 'eXtended Markup Language' and is not a client side language, but a language specification - say: standard. Many 'languages' derrive this standard, such as WML, XHTML and many other data exchange file-types. XML active means, that the XML-parsing functions will work with your PHP

[PHP] Re: APC Cache and eval()

2001-01-12 Thread George Schlossnagle
Haven't tried it. My guess is that it doesn't work, but could be made to. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

Re: [PHP] apache+php4 error ..

2001-01-12 Thread Naresh Chafekar
This solved the problem. Thanks. Naresh. --- Belltree <[EMAIL PROTECTED]> wrote: > Naresh Chafekar£¬Hello£¡ > > You must copy php4ts.dll to windows/system folder. > > Belltree > > ÔÚ 01-1-11 23:58:00 you wrote£º > >I have windows98, apache 1.3.14, php4. After adding > >following line in httpd

[PHP] PHP mungin $xx when returned from a DB.

2001-01-12 Thread Cameron Watters -- List Subscriptions
Ok, I recently upgraded to 4.0.4 (i am aware that pl1 is out, but there is no note of the fix in NEWS). Since that upgrade, when returning data from MySQL that begins with a `$', it munges the $ and the first two characters following. This change has only been since my upgrade from 4.0.3pl1 to 4

Re: [PHP] apache+php4 error ..

2001-01-12 Thread Naresh Chafekar
John, Thanks for the suggestion. I tried both options and still got the same error. Let me know if you can think of any other way to fix this. Naresh. --- John Meyerhofer <[EMAIL PROTECTED]> wrote: > > I would try copying it to your > "C:\Program Files\Apache Group\Apache\modules\" > folder

Re: [PHP] upload _ safe_mode

2001-01-12 Thread Philip Olson
Hi! There are a few more options these days and php4.0.5 will be even friendlier safe mode file uploading (so I hear from reliable sources.) Through some discussion in #php , this use was proposed (by onki) : $tmp_name = $HTTP_POST_FILES["userfile"]["tmp_name"]; move_uploaded_file ($tm

RE: [PHP] Looking for a freeware PHP/MySQL classifieds script

2001-01-12 Thread John Guynn
No luck there...perl based one but not PHP. I've also tried hotscripts.com. John Guynn This email brought to you by RFCs 821 and 1225. -Original Message- From: Joe Stump [mailto:[EMAIL PROTECTED]] Sent: Friday, January 12, 2001 11:17 AM To: John Guynn Cc: Php (E-mail) Subject: Re: [PH

[PHP] newbie

2001-01-12 Thread Kenneth R Zink II
Hi everyone, My name's Kenneth Zink and I'm a newbie here. I just started working with PHP on Wednesday, but with the help of John Guynn, I think I'm getting the hang of it pretty quickly. I joined the list so that I have more resources available to me as I continue learning how to program in P

Re: [PHP] Looking for a freeware PHP/MySQL classifieds script

2001-01-12 Thread Joe Stump
Did you try freshmeat.net ??? --Joe On Fri, Jan 12, 2001 at 11:14:45AM -0600, John Guynn wrote: > I found one but it's written in German and I have enough trouble with > English (my native language). > > Any suggestions? > > John Guynn > > This email brought to you by RFCs 821 and 1225. > >

Re: [PHP] money data type cause problem in connection to Mssql7.0

2001-01-12 Thread Joe Stump
Why not use float? --Joe On Fri, Jan 12, 2001 at 05:19:59PM -, [EMAIL PROTECTED] wrote: > Hi, > > I have got a problem that I canot connect to mssql 7.0 tables with PHP if it > contains field in "money" data type. When I change the "monty" type to > interger or other types, everything fi

[PHP] Looking for a freeware PHP/MySQL classifieds script

2001-01-12 Thread John Guynn
I found one but it's written in German and I have enough trouble with English (my native language). Any suggestions? John Guynn This email brought to you by RFCs 821 and 1225. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands,

[PHP] money data type cause problem in connection to Mssql7.0

2001-01-12 Thread michael
Hi, I have got a problem that I canot connect to mssql 7.0 tables with PHP if it contains field in "money" data type. When I change the "monty" type to interger or other types, everything fine. The fact is that I have to use "money" data type. Can somebody help me please? Thanks in advan

Re: [PHP] Sorting an array

2001-01-12 Thread Monte Ohrt
http://www.php.net/manual/function.array-multisort.php Matthew Brealey wrote: > > I have a 2-d array: > > $list[$ctr]["username"] > $list[$ctr]["county"] > $list[$ctr]["age"] > $list[$ctr]["id"] > $list[$ctr]["days"] > > I need to sort by days, which is an integer. What function should I use?

[PHP] Question about phpinfo() and XML

2001-01-12 Thread Noah Spitzer-Williams
phpinfo reports that XML is 'active' but i thought xml was a client side language? what does it have to do with the server? thanks! - Noah -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contac

Re: [PHP] Is there a function to subtract dates

2001-01-12 Thread Rasmus Lerdorf
Just subtract the Unix timestamps. ie. $past_date = mktime(12,45,0,5,6,1994); $diff = time() - $past_date; $days = $diff/86400; // number of seconds in a day echo (int)$days; // truncate to an integer -Rasmus On 12 Jan 2001, Matthew Brealey wrote: > I need to find the num

  1   2   >