Geographic location by IP Address?

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
Todd_Z
Forum Regular
Posts: 708
Joined: Thu Nov 25, 2004 9:53 pm
Location: U Michigan

Geographic location by IP Address?

Post by Todd_Z »

Anyone know of any free ways that I can get geographic location based on IP address? The City & Country is all i want.
User avatar
wwwapu
Forum Contributor
Posts: 197
Joined: Wed Apr 07, 2004 11:57 am
Location: Turku, Finland

Post by wwwapu »

Do you mean something like http://www.geobytes.com/IpLocator.htm ?
or http://www.handyarchive.com/free/ip-location/

If you do, answer is "No I don't" :wink:
User avatar
anjanesh
DevNet Resident
Posts: 1679
Joined: Sat Dec 06, 2003 9:52 pm
Location: Mumbai, India

Post by anjanesh »

timvw
DevNet Master
Posts: 4897
Joined: Mon Jan 19, 2004 11:11 pm
Location: Leuven, Belgium

Post by timvw »

maxmind.com has geoip.... and a city database..

i was once bored (darn, i seem to be bored quite often ... :p) so i wrote something to try it out... :)

demo: http://timvw.madoka.be/ip2location/
source: http://timvw.madoka.be/programming/php/ip2location.txt
User avatar
John Cartwright
Site Admin
Posts: 11470
Joined: Tue Dec 23, 2003 2:10 am
Location: Toronto
Contact:

Post by John Cartwright »

timvw wrote:maxmind.com has geoip.... and a city database..

i was once bored (darn, i seem to be bored quite often ... :p) so i wrote something to try it out... :)

demo: http://timvw.madoka.be/ip2location/
source: http://timvw.madoka.be/programming/php/ip2location.txt
According to your scipt I live in Africa?
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

Phenom wrote:According to your scipt I live in Africa?
neat! I live in Herndon, US.. wherever that is. :)
timvw
DevNet Master
Posts: 4897
Joined: Mon Jan 19, 2004 11:11 pm
Location: Leuven, Belgium

Post by timvw »

my database is a little outdated.... and i don't feel like buying an upgrade for this gimmick only :)
User avatar
Trenchant
Forum Contributor
Posts: 291
Joined: Mon Nov 29, 2004 6:04 pm
Location: Web Dummy IS

Post by Trenchant »

It had my location right. Until I turned on my internet anonymous program :P
Post Reply