Track where users come from in PHP?
问题 Is it possible to find out where the users come from? For example, I give a client a banner, and the link. The client may put the banner/link to any website, lets say to a site called www.domain.com. When the user click the banner, is it possible to know where he coming from(www.domain.com)? 回答1: Have a look at the HTTP_REFERER variable. It will tell you what site the user was on before he came to your site. 回答2: Yes. You give the client a unique URL, like www.yourdomain.com/in