Turning off register_globals for a specific domain/directory Print

  • 36

Some scripts require that the register_globals setting be turned off in order to work. By default, register_globals is enabled on all Webresellers-hosted domains.

In order to turn this setting off, create a file named ".htaccess" in the directory you want this setting to affect. If you want it to affect an entire domain name, create the ".htaccess" file in the root directory for that domain (usually, this directory is named after the domain). Within the file, place the following line:

php_flag register_globals off


This setting could take a few hours to take effect. 
This should work for other local php.ini settings as well.

One user has reported that:
They just created a php.ini file and added the register_globals = off line, and this worked for them.


Was this answer helpful?

« Back