Re: setting register_globals off

From: Date: Thu, 25 Jan 2001 09:39:20 +0000
Subject: Re: setting register_globals off
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-36589@lists.php.net to get a copy of this message
Hi Catalin, I'm trying to decipher what can and cannot be set with ini_set myself and am slowly figuring it out :-) This cannot be set this way but rather it could be set through .htaccess so : this works in .htaccess : php_value register_globals off this will not work in script : ini_set("register_globals","off"); The latter will set the "local value" but it won't be of any use, it will remain "on" although if you do ini_get("register_globals") right below it it'll report them as "off" when in fact they are "on" There you have it. The answer is "NO" as, as quoted from a similar question awhile ago : "Directives that affect actions that are taken before a script is parsed, such as mangling EGPCS data, can not be changed by the script." - Rasmus This certainly falls into that category. Regards, be outside the box. Philip Olson http://www.cornado.com/ On Thu, 25 Jan 2001, Catalin Borcea wrote: > Can I set "register_globals=off" using a runtime configuration directive > (something like <?php_register_globals_off?>)? > > TIA > -- Catalin Borcea -- > \\\|/// > \\ - - // > ( @ @ ) > -----oOOO----(_)----OOOo---- > > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net >

« previous php.general (#36589) next »