Page 1 of 1

url tracking

Posted: Fri Aug 15, 2008 6:44 am
by itsmani1
Hi

I want to track users on page so that i can know from where users are coming to my page. Is there any way in php so that i can find out that this users came from which url to my page?

Regards
dizyn

Re: url tracking

Posted: Fri Aug 15, 2008 6:57 am
by onion2k
Use $_SERVER['HTTP_REFERER']

Note however that it is optional if the browser sends that information. You won't get it from everyone. Also note that it's data from the browser so the user can change it to whatever they like if they want to, so don't use it for security.