Re: a simple getenv question....

From: Date: Thu, 23 Jan 2003 00:15:22 +0000
Subject: Re: a simple getenv question....
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-132714@lists.php.net to get a copy of this message
just copied your code and it worked fine for me. system: Apache 1.3.26 PHP 4.2.2 I would look into apache 2.0 and the env vars that are available from it. ----- Original Message ----- From: "Bruce Douglas" <bedouglas@earthlink.net> To: <php-general@lists.php.net> Sent: Wednesday, January 22, 2003 3:57 PM Subject: [PHP] a simple getenv question.... > Hi... > > A simple question... In the following code: > > <? > > $ip = getenv("REMOTE_ADDR"); > > echo " ip = ".$ip; > > echo " ip = " . getenv("REMOTE_ADDR"); > > echo " ip = " . getenv('REMOTE_ADDR'); > > echo " ip = ". $REMOTE_ADDR; <------ > > ?> > > I can only seem to get the last line to display the correct value. It's as > if I can't seem to get/return any of the SERVER environment variables using > the getenv() function.... > > I'm using Apache 2.0.40, PHP 4.2.2 on Linux RedHat 8.0. > > I've checked through the PHP.INI file, but couldn't seem to find why this > might be occuring. Any help/assistance would be appreciated..... > > thanks > > bruce > bedouglas@earthlink.net > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > >

« previous php.general (#132714) next »