note 23042 deleted from function.ini-set by sniper
| From: | sniper@php.net | Date: | Mon, 24 Mar 2003 23:37:07 +0000 |
| Subject: | note 23042 deleted from function.ini-set by sniper | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-45760@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?