I get register_globals is disabled Error

  • September 11, 2017
  • 0 Comments

By default, our web servers are configured with security in mind and have PHP register_globals disabled from within PHP.ini. This affects each entire server. But if you are using a third party scripts and are getting the error message shown below then you need to turn register_globals on:

register_globals is disabled in php.ini, please enable it!

To do so, you need to add the following line into your .htaccess file:

 php_value register_globals 1

This will turn your register_globals on and your script will work properly. Perhaps you might ask why is register_globals disabled in the first place? Leaving register_globals turned on poses a security risk for an entire web server. It should therefore only be enabled on a case by case basis and only per website. Web developers on the other hand, are phasing out scripts that require register_globals to be turned on.


How helpful was this article to you?