Re: HTTP_REFERER

From: Date: Tue, 05 Sep 2000 17:40:11 +0000
Subject: Re: HTTP_REFERER
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-15334@lists.php.net to get a copy of this message
Its not in a function, you can view the whole script at http://www.bomb.net/error.phps thanks in advance. ----- Original Message ----- From: "jeremy brand" <jeremy@nirvani.net> To: "Kelly Hamlin" <fizz@bomb.net> Cc: <php-general@lists.php.net> Sent: Tuesday, September 05, 2000 1:16 PM Subject: Re: [PHP] HTTP_REFERER > If you are inside of a function, make sure and say: > global $HTTP_REFERER; > > -jeremy brand > _______________________________________________________________________ > GnuPG Fingerprint: 9F5E 95E0 1CC2 E054 84EA 6099 8ACD 9DBA D2C0 5EA9 > _ http://www.JeremyBrand.com/Jeremy/Brand/Jeremy_Brand.html for > more __ > > On Tue, 5 Sep 2000, Kelly Hamlin wrote: > > > Date: Tue, 5 Sep 2000 08:26:17 -0400 > > From: Kelly Hamlin <fizz@bomb.net> > > To: php-general@lists.php.net > > Subject: [PHP] HTTP_REFERER > > > > Im trying to get my error document 404 working properly, however i keep > > running into a slight problem. > > 1. either http_referer is blank, or > > 2. request_uri shows current page not the page they tried to access > > here is the code > > ---[code]--- > > <? echo $SERVER_NAME . $REQUEST_URI; ?> " </b>does not > > exist.<br> > > > > </font></p> > > <p align="center"><a href="¿Û|×¶Œ¿†‡@ > > aý…µwhttp://www.bomb.net"><font face="Verdana">Back to > > the Mainpage</font></a> > > <p align="center"><font face="Verdana">Your > > information:</font> > > </td> > > </tr> > > </center> > > <tr><td widht=150></td> > > <td> > > <p align="center">Date : <? echo date("d.m.Y") > > ?><br> > > Time : <? echo date("H:i") ?><br> > > Your IP: <? > > $ip = $HTTP_X_FORWARDED_FOR; > > echo $REMOTE_ADDR; > > echo $ip; > > ?> > > &nbsp;<br> > > Browser: <? echo $HTTP_USER_AGENT; ?> > > <br> > > Requested Page: <? echo $SERVER_NAME . $REQUEST_URI; ?> > > <BR>Test: <? global $HTTP_REFERER; ?> > > <BR>test2: <? echo $REQUEST_URI; ?> > > > > > > Any ideas as to why this isnt working? > > I also setup a phpinfo() so i coyuld see and it doesnt even list > > HTTP_REFERER under apache enviroment. > > thanks in advance. > > > > > > -- > > PHP General Mailing List (http://www.php.net/) > > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > > For additional commands, e-mail: php-general-help@lists.php.net > > To contact the list administrators, e-mail: php-list-admin@lists.php.net > > > > > >

« previous php.general (#15334) next »