Hi guys,
When people link my site I have them link to MySite.com/incoming/ and just redirect to my main page.
Well, now I want to start counting those hits. I guess I should see where the hit is coming from then see if I have a database entry for it, does that sound about right ? How do I know where the hit came from ? I really don't want to use a link code for the guys linking me.
Any ideas would be appreciated.
Take care.
Referring URL ?
Moderator: General Moderators
-
anthony88guy
- Forum Contributor
- Posts: 246
- Joined: Thu Jan 20, 2005 8:22 pm
- Chris Corbyn
- Breakbeat Nuttzer
- Posts: 13098
- Joined: Wed Mar 24, 2004 7:57 am
- Location: Melbourne, Australia
Code: Select all
$_SERVER['HTTP_REFERER'];- John Cartwright
- Site Admin
- Posts: 11470
- Joined: Tue Dec 23, 2003 2:10 am
- Location: Toronto
- Contact:
Which is an optional header sent by the browser, do not count on its existance.d11wtq wrote:Code: Select all
$_SERVER['HTTP_REFERER'];