$referal = mysql_real_escape_string($_SERVER[‘HTTP_REFERER’]);
I would like to store this the first time the visitor comes to my site through a referer. so when this page is accessed again, the variable will not change.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can store it in a database combined with the IP-address of the visitor. Next time the visitor drops by, you check if the IP-address is known and if it does, just not add it again.
You could extend this by adding the time of the last visit and after a day or something you can add a new record for the visitor. This way you have a very simple visitor counter.