note 34704 added to language.variables.predefined

From: Date: Mon, 04 Aug 2003 19:00:14 +0000
Subject: note 34704 added to language.variables.predefined
Groups: php.notes 
Request: Send a blank email to php-notes+get-53345@lists.php.net to get a copy of this message
Wouldn't adding variables to the superglobal $GLOBALS make them global. :P EX: <?php $GLOBALS['_GET'] = &$HTTP_GET_VARS; $GLOBALS['_POST'] = &$HTTP_POST_VARS; $GLOBALS['_REQUEST'] = &$HTTP_REQUEST_VARS; $GLOBALS['_COOKIE'] = &$HTTP_COOKIE_VARS; $GLOBALS['_SESSION'] = &$HTTP_SESSION_VARS; $GLOBALS['_ENV'] = &$HTTP_ENV_VARS; $GLOBALS['_SERVER'] = &$HTTP_SERVER_VARS; $GLOBALS['_FILES'] = &$HTTP_POST_FILES; ?> * I was not able to test this on my server, so this was just a wild guess. ---- Manual Page -- http://www.php.net/manual/en/language.variables.predefined.php Edit Note -- http://master.php.net/manage/user-notes.php?action=edit+34704 Delete Note -- http://master.php.net/manage/user-notes.php?action=delete+34704&report=yes Reject Note -- http://master.php.net/manage/user-notes.php?action=reject+34704&report=yes

« previous php.notes (#53345) next »