News:

Go to HostNed.com
Welcome.  This is a place to get user-to-user support, learn more, and share ideas.  If you can't find your answers here, feel free to ask by creating a new topic or visit the support ticket system at https://my.hostned.com :)  Have fun here!

Main Menu

[How To] Set Register Globals to On/Off Using .htaccess

Started by Dynaweb, December 26, 2006, 12:54:17 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Dynaweb

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!

ctwjr

I yam what I yam - Mr Potato Head