HostNed.comHostNed Forums
Welcome, Guest. Please login or register.
Did you miss your activation email?
October 14, 2008, 09:00:58 AM
250 Posts in 91 Topics by 66 Members
Latest Member: smartkick
Home Help Search Login Register
HostNed Forums  |  WEB HOSTING  |  General Hosting  |  Topic: [How To] Set Register Globals to On/Off Using .htaccess 0 Members and 0 Guests are viewing this topic. « previous next »
Pages: [1] Print
Author Topic: [How To] Set Register Globals to On/Off Using .htaccess  (Read 1680 times)
Dynaweb
Yep
Administrator
Full Member
*****
Gender: Male
Posts: 108


HostNed Admin


View Profile WWW
[How To] Set Register Globals to On/Off Using .htaccess
« 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!
« Last Edit: October 31, 2007, 10:01:16 AM by Dynaweb » Logged
ctwjr
Newbie
*
Gender: Male
Posts: 22


HostNed is the best!


View Profile WWW
Re: [How To] Set Register Globals to On/Off Using .htaccess
« Reply #1 on: March 20, 2007, 11:10:16 PM »

Very helpful, thanks.
Logged

I yam what I yam - Mr Potato Head
Pages: [1] Print 
HostNed Forums  |  WEB HOSTING  |  General Hosting  |  Topic: [How To] Set Register Globals to On/Off Using .htaccess « previous next »
Jump to: