RE: [PHP-WIN] HTTP Header REFERER

From: Date: Mon, 26 Feb 2001 23:25:07 +0000
Subject: RE: [PHP-WIN] HTTP Header REFERER
References: 1  Groups: php.windows 
Request: Send a blank email to php-windows+get-5734@lists.php.net to get a copy of this message
Randall, You're missing a proper web server...:-) Seriously, $HTTP_REFERER and getenv("HTTP_REFERER") should work. If not $GLOBALS["HTTP_REFERER"] should also work. try this: echo "HTTP_REFERER is $HTTP_REFERER, ".$GLOBALS["HTTP_REFERER"].", ".getenv("HTTP_REFERER"); and see which one gets set/returned. Ignatius > -----Original Message----- > From: Randall Barber [mailto:rdb55@email.byu.edu] > Sent: Tuesday, 27 February 2001 10:23 > To: php-windows@lists.php.net > Subject: [PHP-WIN] HTTP Header REFERER > > > In apache, the variable: > > HTTP_REFERER is automatically set. > > I don't run apache, I tried to access the variable like this > in a regular script: > > <?php > > echo "$http_referer"; > > ?> > > Other variations include: > > $HTTP_REFERER > > $HTTP_X_REFERER > > $myVar = getenv("HTTP_REFERER"); > > I don't get that variable. All the mail I found in the archives says: > > $HTTP_REFERER > > It is not working for me. > > Please tell me what I am missing here. I thought that all > values of an HTTP header were passed to PHP. Does that not > include a HTTP REQUEST header field REFERRER? > > I run NT4.0 IIS. > > Thanks in advance > RDB >

« previous php.windows (#5734) next »