How can you get the referring URL in PHP?
Moderator: General Moderators
How can you get the referring URL in PHP?
Just wondering how you do this in PHP? Thanks.....
-
angelorigo
- Forum Newbie
- Posts: 3
- Joined: Thu Apr 25, 2002 2:05 pm
- Location: porto alegre
Use this to find the referer
HTTP_SERVER_VARS and _SERVER are the same thing. They are just an array that holds a wide variety of data about the users browser and other useful things. See http://www.php.net/manual/en/reserved.variables.php for more details
--cheers
Code: Select all
$HTTP_SERVER_VARSї'HTTP_REFERER'] // PHP <= 4.06
$_SERVERї'HTTP_REFERER'] // PHP >= 4.1.0--cheers