View Full Version : referral page
03-06-2003, 09: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, 11:35 AM
Would print out the last page accessed
03-06-2003, 11:40 AM
Or $_SERVER["HTTP_REFERER"] (looks cooler :p)
03-07-2003, 01: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, 09: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-14-2004, 11:14 PM
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 © 2017 vBulletin Solutions, Inc. All rights reserved.