PHP4 Ok on PHP5 server ?

Associate
Joined
20 Oct 2002
Posts
901
Location
Surrey
Hi,
i've got a site developed in php4 that I need to do some work on, the development server I have access to is running Apache 2 and PHP 5. Will the site still work correctly on a server running PHP5?
 
Last edited:
From my experience, I'd say almost certainly yes. The only issues might be due to differences in configuration - such as the register_globals setting and so on - but that would apply between servers anyway. It would be more problematic the other way round. I don't think they've actually removed anything from PHP4 that would stop code working.

Depending on your code, and error-reporting level, you may find extra warning errors thrown about features like returning and passing by reference. The old style of syntax for OOP will still work.
 
Back
Top Bottom