Jump to content

php4 to php5


Recommended Posts

As we are planed a server migration from php4 to php5 / mysql 4.3 to mysql5. Our software has many issues We have done few changes to php.ini some problems still exist and only be found when the errors occurred.

 

I want to get the system running smoothly as soon as possible. Can you let me know any way to list out the code problems and system ini changes needed to do before the executing the system. A testing tool.

Link to comment
https://forums.phpfreaks.com/topic/256375-php4-to-php5/
Share on other sites

Most php4 code will work as-is under php5. There are very few incompatible changes in going from php4 to php5 and they are documented here - http://us.php.net/manual/en/migration5.php Also see the versions 5.1.x, 5.2.x and 5.3.x. links on that page.

 

However, a lot of php code is poorly written using php's lazy-way and non-portable short-cuts and long ago depreciated features and functions that where suitable for turning in programming assignments that 'work' but which have no place in actual web applications. If you are suddenly getting a lot of php notice, warning, and error messages, it is most likely that those were always occurring as the code runs, but were hidden by php's error_reporting, display_errors/log_errors settings. You will simply need to find and fix everything that is producing an error message.

 

The reason you would want to find and fix the cause of any php produced error message is so that only real errors will be reported and displayed/logged, so that you will know when a legitimate visitor did something that your logic did not take into account or a hacker is trying (did) break into your script and how he did it, so that you can find and fix the problem.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.