note 14716 added to language.variables.external.php

From: Date: Sat, 11 Aug 2001 12:03:15 +0000
Subject: note 14716 added to language.variables.external.php
Groups: php.notes 
Request: Send a blank email to php-notes+get-16577@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. http://www.php.net/manual/en/language.variables.external.php

« previous php.notes (#16577) next »