how can i use php to see where the visitors are from?

07-12-2002, 02:24 PM
i want to see what country/city/state/etc they are from
is that possible?

07-12-2002, 02:30 PM
Are they going to enter this information on a form you provide, or
do you mean by IP address? Even if you access a Whois server to
query by IP, you might at best get the address of the ISP but the
person might be in a completely different location.

07-12-2002, 02:50 PM
no, they will not enter anything into a form. they will just log on to the page and their location will be stored into a txt file.
so i'm wondering what command i should use

07-12-2002, 02:55 PM
You can't. Not without doing what thinker said and querying a WHOIS database to get the country that the IP has been assigned to. Luckily, the web is fairly anonymous.

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum