View Full Version : referral page
03-06-2003, 10:27 AM
if i have a page, say thispage.php and wants to check where does the previous page comes from, how can i do it???
any php functions?
03-06-2003, 12:35 PM
Would print out the last page accessed
03-06-2003, 12:40 PM
Or $_SERVER["HTTP_REFERER"] (looks cooler :p)
03-07-2003, 02:33 AM
thanks...but i even tried printing as
print_r($_SERVER); to print all the para in $_SERVER[..] but still I cannot find HTTP_REFERER....
or if I echo "$_SERVER['HTTP_REFERER']";
it did not give me anyresult
03-14-2004, 10:19 PM
same thing here...how come i dont have $HTTP_REFERER??
i get this error:
Notice: Undefined variable: HTTP_REFERER in test.php on line 2
ooppss...i got it now.. ignore this!
03-15-2004, 12:14 AM
Did you try accessing the page from a different url? Also, some firewalls, browsers etc will prevent the referrer being shown/recorded.
<edit>Nevermind, just seen this is a very old thread, thought it was recent</edit>
Powered by vBulletin® Version 4.2.2 Copyright © 2015 vBulletin Solutions, Inc. All rights reserved.