Page 1 of 1

Getting user info ??

Posted: Sun Jul 17, 2005 2:47 pm
by roehrle
I have written a pnp hit counter for my webpage that also records the IP address. Is there a look-up table that can determine possible the location or country where the ip is coming from ??

Posted: Sun Jul 17, 2005 2:52 pm
by Chris Corbyn
There's a few places http://www.IP2Country.com/ isn't free but it's pretty comprehensive.

There are some free ones which a search for "IP country" in Google should bring out but they're most likely not so comprehensive ;)

Posted: Sun Jul 17, 2005 3:52 pm
by roehrle
Here is a freeware program for counties but you have to use this manually. There must be a way to scan the data..Any suggestions on how this might be done??

http://www.irnis.net/soft/xipl/

Posted: Sun Jul 17, 2005 4:20 pm
by Chris Corbyn
If you can run it as a CLI app in DOS then you could use passthru(), exec(), to system() or generate output ;)

EDIT | If it has DB files or anything (even binary encoded) you may be able to "rip" the data from them into MySQL - yes I've done it with some other applications before (over 100,000 records) but be very careful - it could land you in trouble if you don't check it's allowed.

Posted: Sun Jul 17, 2005 5:57 pm
by timvw
maxmind.com has a free country database...

Posted: Sun Jul 17, 2005 8:17 pm
by FTJoe