What is the script/code for displaying a users location?

Discussion in 'PHP' started by KGL, Mar 11, 2008.

  1. #1
    The title says it all.
    I'm looking to display the users city and state.

    Any help would be appreciated.
     
    KGL, Mar 11, 2008 IP
  2. bpasc95

    bpasc95 Active Member

    Messages:
    196
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    70
    #2
    You will need a database such as Maxmind's GeoLite City:
    http://www.maxmind.com/app/geolitecity

    As well as their API:
    http://www.maxmind.com/app/php

    When all put together with your application, you can get the City, State, Country based on the users IP address.

    One excellent integration method is into a live support system. In our case, we see:
    68.186.*.*
    duration: 2 sec
    Birmingham, AL
    United States

    -Bing
     
    bpasc95, Mar 11, 2008 IP
  3. swishman

    swishman Well-Known Member

    Messages:
    1,264
    Likes Received:
    28
    Best Answers:
    0
    Trophy Points:
    140
    #3
    using ip information scripts..
    gooooooooogle it :D
     
    swishman, Mar 11, 2008 IP
  4. vishnups

    vishnups Banned

    Messages:
    166
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #4
    I have done if for a DP member recently...you can get the country, city, etc..etc..I have it ready and can be done in 30 minutes. If interested PM me..
     
    vishnups, Mar 11, 2008 IP