In article <[EMAIL PROTECTED]>,
 [EMAIL PROTECTED] (Saci) wrote:

> 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?

It's possible that your *browser* does not pass referer information.  But 
keep in mind that if there was no referring page, then there is no referer 
value for the browser to set.  Try this instead:

<form method="get">
Page refered by
echo $HTTP_REFERER.'<br>';
echo $_SERVER['HTTP_REFERER'].'<br>';
<input type="submit>

Load it, check the value, click "Submit", then check again.


PHP General Mailing List (
To unsubscribe, visit:

Reply via email to