okok Posted May 25, 2004 Posted May 25, 2004 Is it possible by any chance to turn reigster_globals for a specific account off? Thanks Quote
TCH-Rob Posted May 25, 2004 Posted May 25, 2004 I believe that the PHP.ini is for the entire server and that disabling that will remove it from all accounts on the server. Quote
natimage Posted May 25, 2004 Posted May 25, 2004 OK...I'm dumb when it comes to PHP...but I thought you could turn this on or off for a particular script within the PHP code??? I'm probably just getting it confused with something else, though... Quote
TCH-Rob Posted May 25, 2004 Posted May 25, 2004 I am looking for a script to do this, one can not turn it off for a specific account at the server level though, how the question was worded. An individual script may be able to override that for a particular site. Quote
TCH-Rob Posted May 25, 2004 Posted May 25, 2004 Put this in the .htaccess at your sites root >php_flag register_globals off Quote
okok Posted May 26, 2004 Author Posted May 26, 2004 Thanks. Do I need to create a .htaccess file for each subdomain if I want to disable register_globals for it? Quote
TCH-Rob Posted May 26, 2004 Posted May 26, 2004 Thanks. Do I need to create a .htaccess file for each subdomain if I want to disable register_globals for it? If your visitors are accessing the site by the subdomain, as is the purpose of a subdomain, then yes you will. Quote
DarqFlare Posted May 26, 2004 Posted May 26, 2004 You can set quite a few PHP parameters using HTACCESS... Quote
borfast Posted May 26, 2004 Posted May 26, 2004 (edited) This is not a case when you can use this function but there are also a lot of paramenters that you can set via ini_set(): http://php.net/ini_set Edited May 26, 2004 by TCH-Raul Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.