note 50044 added to language.variables.predefined
| From: | php-general at lists dot php dot net | Date: | Wed, 16 Feb 2005 12:35:24 +0000 |
| Subject: | note 50044 added to language.variables.predefined | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-85108@lists.php.net to get a copy of this message | ||
php.net uses this
// Backward compatible array creation. After this point, the
// PHP 4.1.0+ arrays can be used to access variables coming
// from outside PHP. But it should be noted that these variables
// are not necessarily superglobals, so they need to be global-ed!
if (!isset($_SERVER))
{
$_GET = &$HTTP_GET_VARS;
$_POST = &$HTTP_POST_VARS;
$_ENV = &$HTTP_ENV_VARS;
$_SERVER = &$HTTP_SERVER_VARS;
$_COOKIE = &$HTTP_COOKIE_VARS;
$_REQUEST = array_merge($_GET, $_POST, $_COOKIE);
}
$PHP_SELF = $_SERVER['PHP_SELF'];
----
Manual Page -- http://www.php.net/manual/en/language.variables.predefined.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+50044
Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+50044&report=yes&reason=added+to+the+manual
Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+50044&report=yes&reason=bad+code
Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+50044&report=yes&reason=spam
Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+50044&report=yes&reason=useless
Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+50044&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+50044&report=yes
Search -- http://master.php.net/manage/user-notes.php