maheeboolk Posted February 4, 2012 Share Posted February 4, 2012 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. Quote Link to comment https://forums.phpfreaks.com/topic/256375-php4-to-php5/ Share on other sites More sharing options...
PFMaBiSmAd Posted February 4, 2012 Share Posted February 4, 2012 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. Quote Link to comment https://forums.phpfreaks.com/topic/256375-php4-to-php5/#findComment-1314446 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.