Re: Re: turn register_globals on

From: Date: Sun, 08 Sep 2002 23:12:00 +0000
Subject: Re: Re: turn register_globals on
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-115692@lists.php.net to get a copy of this message
Does this work for the original poster? Does not work for me (of course I am going the opposite way, wanting to test scripts one-by-one to verify they work with register_globals off) running: ini_set("register_globals", 0); (and, tried both) ini_set("register_globals", "Off"); According to the docs it says: register_globals "0" PHP_INI_PERDIR|PHP_INI_SYSTEM Stating that this variable can only be changed in .htaccess, or php.ini It does seem to return the correct value, but it does not make the same changes to my script that setting this value to "Off" in php.ini does. So, is this allowable to set in user scripts? Or is the dosumentation correct in saying it cannot? -Brad Jome wrote: > > > Hello I am working on a PHP server which has register_globals off. In my > > script is there anyway to turn it on, just for my script? > > ini_set("register_globals", 1); at the top of your script. > > Jome > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php

« previous php.general (#115692) next »