Re: [PHP] why isn't this working? (many questions inside)

2002-01-28 Thread Robin Chen
Maybe your script timed out before it could finish. Try set_time_limit(0) Another possibility is that your browser gave up. You may need 4GB of disk cache because browsers usually save all files in cache before copying them to the place you designate. Robin Wei Weng wrote: First, I am

Re: [PHP] Database Development Price Inquiry?

2002-03-21 Thread Robin Chen
[-^-!-%- wrote: Hello everyone, I'm in the process of revising my db development prices, and was wondering what the best practices were. I want to keep my prices low, but I often feel like I'm not charging close to what I should be charging. 1) What is the going rate for Database

[PHP] = 0 and = 0

2001-10-25 Thread Robin Chen
why does ? $qty = 0 ; if ($qty != test) print qty is not test; ? work properly but not the following ? $qty = 0 ; if ($qty != test) print qty is not test; ? Thanks, Robin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands,

Re: [PHP] = 0 and = 0

2001-10-25 Thread Robin Chen
Thank you, that was it. I needed to test the variable against both an integer and a string, so I ended up using (string) when I need to compare a string. Rest of the time, it's an integer. Robin Rasmus Lerdorf wrote: If you set $qty=0; then $qty has no value. Of course it has a value.

Re: [PHP] = 0 and = 0

2001-10-25 Thread Robin Chen
The integer 0 is equal to False, but not Null. Robin Kodrik wrote: If you set $qty=0; then $qty has no value. Of course it has a value. No it doesn't have a value. PHP interprets 0 as null. A very easy way for you to check: $value=0; if(!$value) printf($value doesn't have

Re: [PHP] How do I convert from perl to php?

2001-11-20 Thread Robin Chen
? $required = array('name','address','phone'); $has_empty = 0; foreach ($required as $var) { if (!is_set($$var)) $has_empty = 1; } if ($has_empty) print 'You left one empty.'; ? You don't need to use the $has_empty variable, but I thought it would be better to just display the

Re: [PHP] The future of PHP

2001-08-26 Thread Robin Chen
This is very true. I have a few ideas that I want to sell, but the only way that I can do it with PHP is to give out the source, and the user is expected to know how to install PHP and set up the script. If I can compile the PHP script, then I can sell the executables. The users would only

Re: [PHP] Mail()'s not playing nicely :(

2001-06-30 Thread Robin Chen
Instead of \n try \r\n Robin Jamie Thompson wrote: ok so i got mail([EMAIL PROTECTED], $message, sms alert, Return-Path: $email $email\nFrom: $email $email\nReply-To: $email $email\nX-Mailer: . phpversion()); the email appears as from [EMAIL PROTECTED] istead of [EMAIL PROTECTED]