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 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php