Getting user info ??

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
roehrle
Forum Newbie
Posts: 7
Joined: Sun Jul 17, 2005 8:08 am
Location: Edgewater Park NJ

Getting user info ??

Post 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 ??
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Post 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 ;)
roehrle
Forum Newbie
Posts: 7
Joined: Sun Jul 17, 2005 8:08 am
Location: Edgewater Park NJ

Post 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/
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Post 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.
timvw
DevNet Master
Posts: 4897
Joined: Mon Jan 19, 2004 11:11 pm
Location: Leuven, Belgium

Post by timvw »

maxmind.com has a free country database...
FTJoe
Forum Newbie
Posts: 10
Joined: Sun Jul 17, 2005 8:00 pm

Post by FTJoe »

Post Reply