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

[REQ] "What is my location" Script

Discussion in 'PHP & Perl' started by turbotec, Mar 1, 2011.

  1. turbotec

    turbotec Junior Member

    Joined:
    Apr 5, 2008
    Messages:
    181
    Likes Received:
    15
    I am looking for a nice script that shows the users IP and a g00gle map of the location of the IP. I know how to use PHP to give the text of the users IP, but that doesnt give me geo location or a map of the location. I was looking for something like many of the "whatismyip.c0m" sites use. Does anyone have something similar?
     
  2. wkrappen91

    wkrappen91 Power Member

    Joined:
    Sep 9, 2010
    Messages:
    588
    Likes Received:
    720
    Location:
    127.0.0.1
    Check Out MaxMinds GEO IP
    Code:
    [URL="http://www.maxmind.com/app/ip-location"]http://www.maxmind.com/app/ip-location[/URL]
    This can definitely do the thing you asked
     
    • Thanks Thanks x 1
  3. turbotec

    turbotec Junior Member

    Joined:
    Apr 5, 2008
    Messages:
    181
    Likes Received:
    15
    I was just looking at that.....speaking of the devil. Now I just need to figure out how to incorporate the g00gle map with that script
     
  4. wkrappen91

    wkrappen91 Power Member

    Joined:
    Sep 9, 2010
    Messages:
    588
    Likes Received:
    720
    Location:
    127.0.0.1
    Code:
    [URL="http://htmlblog.net/geolocate-your-visitors-with-php-part-2/"]http://htmlblog.net/geolocate-your-visitors-with-php-part-2/[/URL]
    That might help some...
     
  5. chrum

    chrum Newbie

    Joined:
    Mar 1, 2011
    Messages:
    14
    Likes Received:
    2
    Use geoip (as php module) if you can modify your server software. It can supply you with latitude to use on google map later
     
  6. SpiderWebMaster

    SpiderWebMaster Power Member

    Joined:
    Jan 24, 2009
    Messages:
    617
    Likes Received:
    519
    Occupation:
    I don't have a job...
    Location:
    /dev/null
    search for a wordpress plugin called Visitor maps... it has maxmind integration and it pin points visitors in a map. maybe you can save some work, reusing code from the plugin.
     
  7. SEOpie

    SEOpie Registered Member

    Joined:
    Apr 11, 2010
    Messages:
    94
    Likes Received:
    11
    nice... i was looking for something like this to incorporate in my website... Cheers :cool: