from PHP documentation: http://www.php.net/manual/en/reserved.variables.php
'HTTP_REFERER' The address of the page (if any) which referred the user agent to the current page. This is set by the user agent. Not all user agents will set this, and some provide the ability to modify HTTP_REFERER as a feature. In short, it cannot really be trusted. > -----Original Message----- > From: Saci [mailto:[EMAIL PROTECTED]] > Sent: Sunday, July 14, 2002 2:11 PM > To: [EMAIL PROTECTED] > Subject: [PHP] Does not work > > > I tried this simple code > > <html> > <body> > Page refered by > <?php > echo $HTTP_REFERER.'<br>'; > echo $_SERVER['HTTP_REFERER'].'<br>'; > ?> > </body> > </html> > > and I receive blank reply even if referenced from a link from other site. > > What am i doing wrong ? Or perhaps my server does not have > referer enabled? > > > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php