php-general Digest 13 May 2011 05:21:52 -0000 Issue 7309
Topics (messages 312779 through 312781):
Re: mysql problems
312779 by: Tim Streater
312780 by: Curtis Maurand
Running PHP5 in a PHP4 environment
312781 by: Paul M Foster
Administrivia:
To subscribe to the digest, e-mail:
php-general-digest-subscr...@lists.php.net
To unsubscribe from the digest, e-mail:
php-general-digest-unsubscr...@lists.php.net
To post to the list, e-mail:
php-gene...@lists.php.net
----------------------------------------------------------------------
--- Begin Message ---
On 11 May 2011 at 19:25, Curtis Maurand <cur...@maurand.com> wrote:
> $_cartTotal="$0.00";
Surely that should be:
$_cartTotal = "0.00";
tim
--- End Message ---
--- Begin Message ---
Tim Streater wrote:
> On 11 May 2011 at 19:25, Curtis
Maurand <cur...@maurand.com> 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
--- End Message ---
--- Begin Message ---
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
--- End Message ---