Re: getenv

From: Date: Tue, 29 Aug 2000 09:16:22 +0000
Subject: Re: getenv
References: 1  Groups: php.windows 
Request: Send a blank email to php-windows+get-2249@lists.php.net to get a copy of this message
I've had the same problem. I've changed to HTTP_SERVER_VARS["REMOTE_HOST"] > > I'm pretty new to php, so this may seem a little simple, but why does > > echo "$REMOTE_ADDR" > > print the ip to the browser whilst > > $address = getenv("REMOTE_ADDR"); > echo "Your IP address is $address"; > > doesn't?? phpinfo() works fine. > > Using phpisapi on IIS5/2000. > > Cheers > Peter > > > -- > PHP Windows Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-windows-unsubscribe@lists.php.net > For additional commands, e-mail: php-windows-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net > >

« previous php.windows (#2249) next »