note 14716 rejected and deleted from language.variables.external.php by alindeman
| From: | alindeman@php.net | Date: | Sun, 12 Aug 2001 16:17:58 +0000 |
| Subject: | note 14716 rejected and deleted from language.variables.external.php by alindeman | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-16606@lists.php.net to get a copy of this message | ||
Documentation bug: Environment variables (as well as server-supplied variables) are NOT imported to
the global namespace unless register_globals=on. (Tested on php 4.06). If register_globals=off, you
must access these variables via $HTTP_ENV_VARS and $HTTP_SERVER_VARS respectively. You may also use
the getenv() function.
Also interesting to note that,at least on Win32 with Apache, CGI variables are NOT added to the
environment as stated under "Predefined Variables" (or at least, they do not show up in
$HTTP_ENV_VARS). Not sure whether this is an issue with Win32, Apache, or PHP. Don't really
have time to investigate.