note 23042 modified in function.ini-set by philip

From: Date: Thu, 11 Jul 2002 09:21:45 +0000
Subject: note 23042 modified in function.ini-set by philip
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-32887@lists.php.net to get a copy of this message
[[[Editors note: Yes, it can be set but it will not do much. For example, setting register_globals at runtime will not make $id from foo.com/a.php?id=3. This all happens before reaching your script. We're updating the docs to make this more clear. ]]] This code doesn't work: <? if(ini_set("register_globals", "0")) echo "ini_set success"; else echo "ini_set failed"; ?> At http://php.net/ini_set it states the following setting is possible: register_globals "0" PHP_INI_ALL Translated, PHP_INI_ALL means: Entry can be set anywhere So does anyone know why my code doesn't work then? ini_set() seems broken. Can anyone confirm or deny? --was-- This code doesn't work: <? if(ini_set("register_globals", "0")) echo "ini_set success"; else echo "ini_set failed"; ?> At http://php.net/ini_set it states the following setting is possible: register_globals "0" PHP_INI_ALL Translated, PHP_INI_ALL means: Entry can be set anywhere So does anyone know why my code doesn't work then? ini_set() seems broken. Can anyone confirm or deny? http://www.php.net/manual/en/function.ini-set.php

« previous php.notes (#32887) next »