1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

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. MoneyMafia

    MoneyMafia Regular Member

    Joined:
    Dec 2, 2007
    Messages:
    290
    Likes Received:
    310
    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.