Unique Link Tracking

Discussion in 'PHP' started by hotfaps, May 15, 2010.

  1. #1
    How do I do a real time Unique Link Tracking
    I give out unique links based off IP

    <?php
    $ip = getenv("REMOTE_ADDR") ;
    $unique2 = str_replace(".", "", $ip); ?>
    http://www.sitehere.com/?id=<? echo $unique2; ?>

    How do I track this link? So if user sends link to someone and its clicked he is registered at 1. If 2nd unique ip clicks it its at 2.

    Basically That link it prints is his Unique Referral link, and I want to track each unique IP he sends to my site.
     
    Last edited: May 15, 2010
    hotfaps, May 15, 2010 IP
  2. gapz101

    gapz101 Well-Known Member

    Messages:
    524
    Likes Received:
    8
    Best Answers:
    2
    Trophy Points:
    150
    #2
    just compare what you get from ?id=xxxx with getenv('REMOTE_ADDR')
     
    gapz101, May 15, 2010 IP