Enable/Disable register_globals
The most common setting that clients will want to change are the “register_globals” settings. If you want to enable register_globals, you will need to create a .htaccess file in your site’s main directory (or the main directory of your site that contains PHP hosting scripts). Your .htaccess file should contain the following line:
php_flag register_globals on
If you want to disable register_globals then your .htaccess file should contain the following line:
php_flag register_globals off

















July 8th, 2006 at 8:04 pm
First check whether suexec enabled or disabled on server if it is enabled then it gives give internal server error when you add the ” php_flag register_globals on” or “php_flag register_globals off” line in .htaccess file. For such condition if you want to enable register_globals, you will need to create php.ini file in your site’s main directory and add following line in php.ini file:
register_globals = on
If you want to disable register_globals then add following line in php.ini file:
register_globals = off