Finding from which site you have come from

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
shivam0101
Forum Contributor
Posts: 197
Joined: Sat Jun 09, 2007 12:09 am

Finding from which site you have come from

Post 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");
User avatar
maliskoleather
Forum Contributor
Posts: 155
Joined: Tue May 15, 2007 2:19 am
Contact:

Post 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.
Post Reply