How we can find the user where he/she comes

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
nonstop
Forum Newbie
Posts: 1
Joined: Tue Jul 02, 2002 9:50 am
Location: Turkey
Contact:

How we can find the user where he/she comes

Post by nonstop »

I want to know the user where they stay (country). Like in the http://www.phpclasses.org.

Could u help me?
User avatar
llimllib
Moderator
Posts: 466
Joined: Mon Jul 01, 2002 2:19 pm
Location: Baltimore, MD

Post by llimllib »

As far as I can see, phpclasses.org doesn't get where their users are staying, it just asks them. Now, if you want an *idea* of where your users live, what you could do is write a curl script to download information from http://www.networldmap.com/TryIt.htm?GetLocation, and then parse the response, but IP addresses are not exact indicators of someone's location.
User avatar
kilren
Forum Newbie
Posts: 5
Joined: Fri Jul 05, 2002 8:24 am
Location: FRANCE - Aix En Provence

Post by kilren »

this system doesn't work
I try it with my own IP
it reply that I was in Kansas USA instead of Aix en Provence FRANCE
anyway it does working with 2 third of the IP I tried
User avatar
mikeq
Forum Regular
Posts: 512
Joined: Fri May 03, 2002 3:33 am
Location: Edinburgh, Scotland

Post by mikeq »

kilren wrote:it does working with 2 third of the IP I tried
Okay, but unless it works 100% of the time there is no point in using it.
Post Reply