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: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]