Re: [PHP] Running PHP5 in a PHP4 environment
Paul M Foster wrote: 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? Check the apache error logs, that is where you will usually find something. -- Per Jessen, Zürich (14.2°C) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Running PHP5 in a PHP4 environment
Per Jessen wrote: Check the apache error logs, that is where you will usually find something. And switching on error display in php.ini helps as well while you are debugging. -- Lester Caine - G8HFL - Contact - http://lsces.co.uk/wiki/?page=contact L.S.Caine Electronic Services - http://lsces.co.uk EnquirySolve - http://enquirysolve.com/ Model Engineers Digital Workshop - http://medw.co.uk// Firebird - http://www.firebirdsql.org/index.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Running PHP5 in a PHP4 environment
On Fri, May 13, 2011 at 01:22:10AM -0400, Paul M Foster wrote: 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 ... 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? Would your time not be better spent getting the system upgraded to PHP5 ? PHP 4 was depricated some time ago. -- Alain Williams Linux/GNU Consultant - Mail systems, Web sites, Networking, Programmer, IT Lecturer. +44 (0) 787 668 0256 http://www.phcomp.co.uk/ Parliament Hill Computers Ltd. Registration Information: http://www.phcomp.co.uk/contact.php #include std_disclaimer.h -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Running PHP5 in a PHP4 environment
On Fri, May 13, 2011 at 04:14, Alain Williams a...@phcomp.co.uk wrote: PHP 4 was depricated some time ago. Not just deprecated --- we EOL'd it back in 2007[1] (and let it completely die on 08-08-08). If you can upgrade PHP on the box, you probably (read: really!) should; if not, time to find a new host. ^1. http://links.parasane.net/rzrp -- /Daniel P. Brown Network Infrastructure Manager http://www.php.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php