Re: HTTP Environment Varialbles
| From: | Rasmus Lerdorf | Date: | Thu, 06 Dec 2001 22:49:31 +0000 |
| Subject: | Re: HTTP Environment Varialbles | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-76961@lists.php.net to get a copy of this message | ||
> var_dump($HTTP_SERVER_VARS);
> var_dump($HTTP_POST_VARS);
> var_dump($HTTP_GET_VARS);
> var_dump($HTTP_COOKIE_VARS);
> var_dump($HTTP_ENV_VARS);
>
> since 4.1.0 these are deprecated. Use
> $_SERVER, $_POST, $_GET, $_COOKIE, $_ENV
They are not deprecated. They will still work. $_* are slightly
different in that they are auto-globals just like $GLOBALS. An
auto-global does not need to be declared global inside a function.
-Rasmus