HostNed Community

WEB HOSTING DISCUSSIONS => General Hosting => Topic started by: Dynaweb on December 26, 2006, 12:54:17 PM

Title: [How To] Set Register Globals to On/Off Using .htaccess
Post by: Dynaweb on December 26, 2006, 12:54:17 PM
HostNed allows you to override php.ini settings to your preference with an .htaccess file.  For example, if on a linux server, the global setting for register_globals is On and you have a script that recommends it be set to Off, here's how to change it:

1) In the http root of your web space, see if there is already a file there named ".htaccess".  If not, create one.
2) Edit the file and add the following line somewhere on it's own line.
php_flag register_globals off
3) Exit and save the file.

You have now set register_globals to off for your entire domain.  Easy!
Title: Re: [How To] Set Register Globals to On/Off Using .htaccess
Post by: ctwjr on March 20, 2007, 11:10:16 PM
Very helpful, thanks.