Re: NULL Apache environment variables

From: Date: Mon, 18 Feb 2002 17:53:54 +0000
Subject: Re: NULL Apache environment variables
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-85236@lists.php.net to get a copy of this message
Have a look at the function getenv().......... eg: $ip = getenv ("REMOTE_ADDR"); // get the ip number of the user HTH Neil "Narvaez, Teresa" wrote: > Hello, > I'm running PHP version 4.1.1. When I invoke this function, <?php > phpinfo()?>, all variables are set. However, when I try to retrieve a value > of a certain variable like this: > > <?php echo $HTTP_USER_AGENT; ?> > > It returns NULL. Is there a missing configuration on apache or php? > > Thanks, > -Teresa > > *************************************************************** > This message was virus checked with: SAVI 3.53 Jan 2002 > last updated 30th January 2002 > *************************************************************** -- -------------------------------- Email: neil.freeman@asa.co.uk neil_freeman@yahoo.com --------------------------------

« previous php.general (#85236) next »