jimath Posted March 27, 2008 Share Posted March 27, 2008 hi everyone! i d like to ask if i can have installed both php4 and php5 in the same computer. in addition, Do scripts that are written in php4 run normally in php5? or i ll have any problems? Quote Link to comment https://forums.phpfreaks.com/topic/98126-scripts-written-in-php4/ Share on other sites More sharing options...
r-it Posted March 27, 2008 Share Posted March 27, 2008 in your php.ini file, you have to set the default php version (php5 is the way to go), and you can use most of php4's functionality on 5. it would be wise though to look at the conversion table to see what changes you would need to make to a php4 script so that it is compatible with php5. Quote Link to comment https://forums.phpfreaks.com/topic/98126-scripts-written-in-php4/#findComment-501971 Share on other sites More sharing options...
jimath Posted March 27, 2008 Author Share Posted March 27, 2008 what is the conversion table? Quote Link to comment https://forums.phpfreaks.com/topic/98126-scripts-written-in-php4/#findComment-501976 Share on other sites More sharing options...
r-it Posted March 27, 2008 Share Posted March 27, 2008 http://safari.oreilly.com/1593270771/ns1593270771-APP-B Quote Link to comment https://forums.phpfreaks.com/topic/98126-scripts-written-in-php4/#findComment-501978 Share on other sites More sharing options...
wildteen88 Posted March 27, 2008 Share Posted March 27, 2008 php5 is backwards compatible with php4. However this will only work if your php4 scripts does not rely on depreciated php settings such as register_globals. Before upgrading php4 run phpinfo() and save the outputted html code to an external .html file call this php4info.html then when you upgrade php to php5 compare php4info.html to php5 configuration when you run phpinfo() on your php5 setup. Quote Link to comment https://forums.phpfreaks.com/topic/98126-scripts-written-in-php4/#findComment-502051 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.