Re: Re: [PHP] mysql problems

2011-05-12 Thread Tim Streater
On 11 May 2011 at 19:25, Curtis Maurand  wrote: 

> $_cartTotal="$0.00";

Surely that should be:

$_cartTotal = "0.00";


tim


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Re: Re: [PHP] mysql problems

2011-05-12 Thread Curtis Maurand



Tim Streater wrote:
> On 11 May 2011 at 19:25, Curtis
Maurand  wrote:
> 
>>
$_cartTotal="$0.00";
> 
> Surely that should
be:
> 
> $_cartTotal = "0.00";

Good
pickup.  I missed that.  I didn't write the code, I'm just
trying to figure out what's going on.
 Thanks,  I'll look at
that.  --C


[PHP] Running PHP5 in a PHP4 environment

2011-05-12 Thread Paul M Foster
I recently installed some code written for a PHP 5 environment on a
server which I thought was running PHP 5. It was a form which should
have painted at least something to the browser window. But instead, I
got a complete blank page. Come to find out that the server was actually
running PHP 4.

I've seen PHP do this before-- trying to run PHP 5 in a PHP 4
environment causes it to do every step up to the point where it sees
"future code" it doesn't understand. Then it just stops, no errors, no
panics, no nothing.

Is this expected behavior, or am I missing something? It seems like if
the PHP interpreter hit some "future code" it didn't understand, it
would issue a syntax warning or something similar. Is there some way I
can squeeze some identifiable error code out of PHP 4 to indicate it's
hit PHP 5 code it doesn't understand?

Paul

-- 
Paul M. Foster
http://noferblatz.com
http://quillandmouse.com

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php