note 21977 added to language.variables.predefined
| From: | junkmail dot N0 at SPaM dot indievisible dot org | Date: | Sun, 02 Jun 2002 17:04:02 +0000 |
| Subject: | note 21977 added to language.variables.predefined | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-31348@lists.php.net to get a copy of this message | ||
I've been using the following to get around register_globals being off until I can rewrite
everything.
Put this at the top level of your scripts, outside any functions.
if (ini_get('register_globals') != 1) {
$supers = array('_REQUEST','_ENV','_SERVER');
foreach ($supers as $__s) {
if (is_array($$__s) == true) extract($$__s, EXTR_OVERWRITE);
}
unset($supers);
}
--
http://www.php.net/manual/en/language.variables.predefined.php
http://master.php.net/manage/user-notes.php?action=edit+21977
http://master.php.net/manage/user-notes.php?action=delete+21977
http://master.php.net/manage/user-notes.php?action=reject+21977