special url for each visitor

Discussion in 'PHP' started by Sk8TeR, Dec 8, 2008.

  1. #1
    Hello,

    i have a project in mind but i dont know how develop it i just want some orientation or if you can some part of code :)

    Well my idea is...


    For example when a user enter to my website

    a code is created to it for example

    enter to http://myweb.com/url.php?=4182u3jakd821jdad <- This must change for each visitor. And each new visit to http://myweb.com/url.php?=4182u3jakd821jdad will gain a new point and when earn 2 points(visits) can see 2 images when earn 10 points(visits) can see 10 images

    Thanks i hope to be explicit

    Regards
     
    Sk8TeR, Dec 8, 2008 IP
  2. rene7705

    rene7705 Peon

    Messages:
    233
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #2
    either you let them login with a username / password first, or you do this by IP-address (meaning if they change computer or if their ISP changes their IP they lose their points).

    to get the IP addr in PHP you query $_SERVER['REMOTE_ADDR'];
    you'd have to store "IP = key" somewhere, in a database or a flat file..

    hope to have helped ;)
     
    rene7705, Dec 8, 2008 IP