In addition to scanning the results of http://php.net/gethostbyaddr
I believe there *ARE* records of who owns what IP ranges, and you could
*MAYBE* access them with Whois, SNMP, and/or other tools to make an educated
guess.
Nothing will be 100% accurate, however.
Why do you think you need this?...
If it's language, you can use the language-negotiation or
content-negotiation or whatever it is, but most users don't set their
browser up properly in the first place, so it's not real useful... You're
pretty much stuck with the stupid/cute++ little flags interface :-)
++ Stupid or cute depends on how many times you've seen it :-)
--
WARNING [EMAIL PROTECTED] address is an endangered species -- Use
[EMAIL PROTECTED]
Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm
Volunteer a little time: http://chatmusic.com/volunteer.htm
----- Original Message -----
From: Mihailo Dzigurski <[EMAIL PROTECTED]>
Newsgroups: php.general
To: <[EMAIL PROTECTED]>
Sent: Monday, August 20, 2001 3:57 AM
Subject: Countries and ip addresses
> Hello,
>
> How can I find out from witch country user is based on user ip address? I
> need this from php script.
>
> Thanks,
> Mihailo.
>
>
> _________________________________________________________
> Do You Yahoo!?
> Get your free @yahoo.com address at http://mail.yahoo.com
>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]