How to guest the location of visitors 'live' ?

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
mingo
Forum Newbie
Posts: 9
Joined: Fri Nov 22, 2002 3:46 am
Location: London

How to guest the location of visitors 'live' ?

Post by mingo »

I am using a PHP script to know how many people are visiting a website 'live' and would like like to know if it will be possible to find out also the location-country of visitors ie: USA, France, China,.... perhaps guesting the IP address? if so how?

Many many thanks :roll:
derek
Forum Newbie
Posts: 17
Joined: Sat Aug 16, 2003 11:31 am

Post by derek »

Hello,
I'm feeling great to replying you. Yes definetely it's possible to find out the country of a visitors. You can use this free IP 2 Country service. They also provide the source code which you can just cut and paste in your webpages to know the country.

Please go to the following link:

http://ip2country.sapphiresoft.co.uk

I hope it's helpful for you.
m3rajk
DevNet Resident
Posts: 1191
Joined: Mon Jun 02, 2003 3:37 pm

Post by m3rajk »

that's a bit hard
if i use a proxy in argentina, you're going to think i'm argentinian when i'm from the usa and ... well.. i can use nearly all the spanish i know in the sentance: yo no hablo espanole

i literally only know these words that aren't in that sentance:
beunos
gato
pedro pantillos (long story why i have these on the same line)
si
ameigo
derek
Forum Newbie
Posts: 17
Joined: Sat Aug 16, 2003 11:31 am

Post by derek »

Yes, definetely it's hard to know someones country but not impossible. It's totally depends on to which country your IP belongs and it doesn't matter which language you use or know. We are still working on this service and our more than 90% results are accurate.
Post Reply