Page 1 of 1

Finding from which site you have come from

Posted: Wed Sep 19, 2007 10:40 pm
by shivam0101
How to find from which site the user has come?

i tried,

Code: Select all

$_SERVER['HTTP_REFERRER']
, its not working when i use

Code: Select all

header("Location: somesite.php");

Posted: Wed Sep 19, 2007 10:43 pm
by maliskoleather
its

Code: Select all

$_SERVER['HTTP_REFERER']
yes, its spelled wrong. it was a typo in the original RFC, and it just stuck.