Getting a passing URL

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
giles
Forum Commoner
Posts: 34
Joined: Thu Sep 14, 2006 2:34 pm

Getting a passing URL

Post by giles »

Hi,

Is there any way of getting the URL of the page that has passed a visitor to my home page? - I’ve had a look about but can’t find much, am I asking an unusual question?
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

$_SERVER['HTTP_REFERER'] is the only thing you will find. It is not very reliable however because it is specified by choice of the requesting agent.
Post Reply