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
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.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.