Location script

Discussion in 'PHP & Perl' started by vegasvillan, Mar 31, 2009.

  1. vegasvillan

    vegasvillan Regular Member

    Joined:
    Jan 15, 2009
    Messages:
    406
    Likes Received:
    511
    Location:
    NYC
    anyone have a script that will change the state for example

    The leader in "Nevada" Real Esate
     
  2. Daniel-MD

    Daniel-MD Jr. VIP Jr. VIP

    Joined:
    Dec 2, 2007
    Messages:
    319
    Likes Received:
    313
    Gender:
    Male
    Location:
    London
    Home Page:
    Based on USER's IP address ?
     
  3. f0rked

    f0rked Registered Member

    Joined:
    Jan 25, 2009
    Messages:
    71
    Likes Received:
    64
    You'd have to use something like hxxp://pecl.php.net/geoip, or the MaxMind GeoIP API. I'm sure there are others, but those are the two I've used in the past.