PDA

View Full Version : get user location


Billy T
11-17-2004, 04:39 AM
Hey all

I'm looking for a way to get the users location using php

I can get their IP and country but have not found a good (preferably free) way of finding their town or city

Also, is it possible to do a whois search using php?

Thanks

CyanBlue
11-18-2004, 05:12 PM
I'm sure you've checked out this one already... :)

IP2Location
$199 for the database(abit expensive, I think)
http://www.ip2location.com/

petefs
11-18-2004, 05:36 PM
http://pear.php.net/ has a geographical IP lookup package available -- and it's free ^_^

Billy T
11-19-2004, 12:42 AM
looks like the pear package requires the purchase of a database as well (to look up cities anyway)

Thank you both

freddycodes
11-19-2004, 03:45 PM
You are probably not going to find a free service to do that. BUt there are some cool pay services. Not too bad. If your client is paying.

http://www.geomonster.com/Products/WebServices_IPServe.aspx

freddycodes
11-19-2004, 03:46 PM
Also the problem is most of the time the IP address look ups are entirely accurate to a city level.

Billy T
11-19-2004, 10:18 PM
thanks freddy. that service does not seem to supply city info - am I missing something? Also did you mean 'not entirely accurate'? ;)