linkdiscovery ;)

Discussion in 'PHP' started by theadud, Dec 13, 2007.

  1. #1
    Hey ;)
    I want to see where the user has been linked from if he were linked at all.

    Let's say you have a link to my page on your page. A simple link. And if anyone clicked it and got directed to mine, my page will know it :)

    I know this site that adds you in a advertising-list and people can see how many times people on the commercial site has gone in to they're site.

    Like I could see how many times someone has clicked on the link on your page to my page.

    Any idèas?
     
    theadud, Dec 13, 2007 IP
  2. Gawk

    Gawk Peon

    Messages:
    427
    Likes Received:
    36
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Check your weblogs with something like awstats - your web host should provide this service or something similar - you can see which sites have sent you traffic.
     
    Gawk, Dec 14, 2007 IP
  3. selling vcc

    selling vcc Peon

    Messages:
    361
    Likes Received:
    18
    Best Answers:
    0
    Trophy Points:
    0
    #3
    <?php echo $_SERVER['HTTP_REFERER'];?>
    PHP:
    this variable contains what you described ( the referring url ).
     
    selling vcc, Dec 14, 2007 IP