Jump to content

Recommended Posts

Hi

 

I am still running a server with PHP4, but it has now come to a point where I need to upgrade to PHP5.

However, It would be great if I could get some advice from you guys first.

 

- Will my website that was built in php4 still work?

- is there a list of functions that no longer work?

- What are the chances of my old site breaking?

 

Thanks for your help.

Link to comment
https://forums.phpfreaks.com/topic/165317-php-4-to-php-5/
Share on other sites

- Will my website that was built in php4 still work?

If is was using the current recommended php.ini settings, it will probably work.

 

- is there a list of functions that no longer work?

See the links Daniel0 posted. All the functions still work. There are only a few minor/obscure incompatible differences.

 

- What are the chances of my old site breaking?

High. Too many web hosts and people writing code under php4 did not follow recommend php.ini changes that occurred over time, in some cases things that were turned off by default a full 7 years ago. Most notably relying on register_globals and not using the $_SESSION variable array. These are actually php configuration changes and nothing to do with the php version.

 

All the features that have been turned off over time still exist in php5 (most have been completely removed in php6 though), so it is  possible in the short term to  configure php5 identically to your php4 system while you correct any code that is dependent on depreciated features.

 

You should probably test your code on an off-line php5 development system that you know is using the current recommend php.ini settings (there is no guarantee that your web host is following the current recommendations under php5) rather than just switching to php5 on your active web site.

Link to comment
https://forums.phpfreaks.com/topic/165317-php-4-to-php-5/#findComment-871926
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.