Re: HTTP_REFERER is empty!

From: Date: Thu, 02 Nov 2000 20:03:32 +0000
Subject: Re: HTTP_REFERER is empty!
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-23447@lists.php.net to get a copy of this message
on 11/2/00 8:49 AM, Worawisut Pinyoyang (s0010684@kmitl.ac.th) wrote: > i'm working on standalone computer with Apache for Win32 + PHP 4.0.3 cgi > (Win2K) > my problem is when i try to put his code: > > <?php > > echo $HTTP_REFERER; > > $refer = getenv("HTP_REFERER"); > > echo $refer; > > ?> > > but the results are empty.The browsers (IE,Netscape,Opera) echo > nothing...blank... > > What's happen ? and how can i solve this problem? 1) Did you click on a link to go to that PHP page? That's the only way that the Referer would get set. 2) Is HTP_REFERER a typo? It should be HTTP_REFERER. 2) Certain browsers don't send the Referer (or let users decide not to send it). Because of this, you should consider how you're planning to use it and whether that would matter or not. Paul ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Paul Burney Webmaster and Internet Developer Educational Technology Unit Graduate School of Education and Information Studies University of California, Los Angeles (310) 825-8365 <webmaster@gseis.ucla.edu> <http://www.gseis.ucla.edu/> ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

« previous php.general (#23447) next »