Help with php.ini and register_globals=on

Hi there,

I was asked to deal with an old web site programmed in php. Recently the file index.php has stopped working. Instead of displaying and executing its code, the web server shows us advertisements. Hosting support told me that the script was faulty or outdated.
I was confused and found out that the problem was caused by a php.ini file containing this line of code:
register_globals=on
Deleting the php.ini meant that php was executed through the index.php file again but the web site now was missing a key feature, its navigation.
Do you have any experience with these things? How could I get the web site to work again?

Thank you. Foolix

Hi everyone,
I have been informed by the hoster support team that the web site requires php5 to run, while we were using a later version. We could then downgrade php for the domain and I am again able to run my php scripts as intended.
Sorry for bothering you with this.
Foolix

Why not upgrading the script? PHP 5 has been out of date for a while now.

Is it using mysql? or something deprecated?

I’d be interested in helping you upgrade the code to work in PHP7

Sponsor our Newsletter | Privacy Policy | Terms of Service