rocky48 Posted June 3, 2014 Share Posted June 3, 2014 I have just upgraded PHP on my ISP server and none of the php scripts work. I was using 5.2. And I am now on 5.4. Why would the scripts stop working? Are there and patches or changes I need to make to make them work? I need an answer urgently! Quote Link to comment https://forums.phpfreaks.com/topic/288967-changed-php-version-now-php-scripts-not-working/ Share on other sites More sharing options...
Psycho Posted June 3, 2014 Share Posted June 3, 2014 Impossible for us to say with the little information you've provided. But, this should be a learning experience to test your application in a newer version before deploying it. You'll probably need to enable full error reporting on your pages and see what errors are thrown so you know what needs to be fixed. If you have any "simple" pages, you could post one here to get some input. But, whatever problems exist on that page may not necessarily be indicative of problems on other pages. Quote Link to comment https://forums.phpfreaks.com/topic/288967-changed-php-version-now-php-scripts-not-working/#findComment-1481790 Share on other sites More sharing options...
mac_gyver Posted June 3, 2014 Share Posted June 3, 2014 i recommend that you read the relevant php version migration sections in the php documentation so that you are aware of what has changed in php over time that will affect your code - http://us3.php.net/manual/en/appendices.php in just scanning the list of backward incompatible changes for the version numbers you mentioned, the two most likely causes of your scripts no longer working is the removal of register_globals and/or magic_quotes_xxxxxx. Quote Link to comment https://forums.phpfreaks.com/topic/288967-changed-php-version-now-php-scripts-not-working/#findComment-1481800 Share on other sites More sharing options...
cyberRobot Posted June 4, 2014 Share Posted June 4, 2014 I was using 5.2. And I am now on 5.4. Are you able to switch back to 5.2? If so, I would recommend doing that. Then setting up some sort of development environment to prepare your scripts to 5.4. Quote Link to comment https://forums.phpfreaks.com/topic/288967-changed-php-version-now-php-scripts-not-working/#findComment-1481841 Share on other sites More sharing options...
Zane Posted June 4, 2014 Share Posted June 4, 2014 Just in case you are using them... Short tags are no longer enabled by default, you have to enable the manually in the php.ini file. <?="Hello World" ?> <? echo "Hellow World"; ?> Quote Link to comment https://forums.phpfreaks.com/topic/288967-changed-php-version-now-php-scripts-not-working/#findComment-1481862 Share on other sites More sharing options...
Jacques1 Posted June 4, 2014 Share Posted June 4, 2014 The “<?=” syntax isn't considered a short tag since PHP 5.4 and is always available. If you do have short tags (actual ones), you're better off killing them altogether. Quote Link to comment https://forums.phpfreaks.com/topic/288967-changed-php-version-now-php-scripts-not-working/#findComment-1481866 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.