Register_Globals in .htaccess Print

  • 0

Use .htaccess to turn on or off PHP Register Globals without editing your php.ini.This is a great way to enable older PHP scripts to run without making your whole site insecure.

Simply create a .htaccess file in the base directory of your web content or in the directory of the PHP script you wish to allow or disallow PHP Registers Globals.

This is a great way to debug certain scripts without affecting the whole site.

php_flag register_globals on

OR

php_flag register_globals off


Was this answer helpful?

« Back

Powered by WHMCompleteSolution