Michael Boutros
Jul 13 2005, 03:26 PM
Is there any way to get City, State from an IP address?
Michael Boutros
Jul 13 2005, 04:09 PM
And how can I incorporate this using PHP?
Michael Boutros
Jul 13 2005, 04:20 PM
That's what I am reading about right now, but I am very confused. Can you provide me with some sort of example as to how I would do this?
I don't know much about sockets, but you could just open a socket to their service, then 'GET /tools/city.ch?ip=ip_address'... I know close to nothing about sockets using PHP, but if you want, I can write you a Perl function you can then rewrite to PHP... If you know Perl, that is.
Bøb
Jul 13 2005, 07:41 PM
It isn't really that accurate though. it more depends where the users IPS is located and not the user themselves... it says london for me when i am nearer glasgow...
.John.
Jul 14 2005, 02:48 AM
I just do a WHOIS search:
http://www.whois.sc/invisionpower.comOr, you can use an IP...
Michael_C
Jul 14 2005, 04:49 AM