Re: superglobals

From: Date: Wed, 13 Oct 2004 07:58:39 +0000
Subject: Re: superglobals
References: 1  Groups: php.install 
Request: Send a blank email to php-install+get-14505@lists.php.net to get a copy of this message
Douglas Robson schrieb:
I'm a total noob, so be gentle and very explicit. I am trying to access certain superglobals like $_ENV['DOCUMENT_ROOT'] I tried the following and got nothing but, "You are running ." <?php $result = getenv($_ENV['DOCUMENT_ROOT']); echo "$result"; echo "You are running <b>$PHP_SELF</b>.<br /><br />\n"; ?> Thanks, phpneophyte Try $_SERVER["PHP_SELF"] instead of $PHP_SELF .
Hendrik

« previous php.install (#14505) next »