in PHP, we could know where is the user come from, or referred from.
It will be so useful for site logging, like in GenosI script.
You don't need to write a lot of script to do this. We only need one variable that will solve our problem.
So, here's how to get the user referrer in PHP :
Variable used : $_SERVER['HTTP_REFERER']
The variable above will return the user referrer.
and here's the sample of HTTP referrer :
<?phpecho $_SERVER['HTTP_REFERER'];
?>
Practice it soon man..
Printer friendly pageAdd your comment here
| Hits : 166 | Comments (0) |