Re: How to check what country the user is comming from ?
| From: | Duncan Hill | Date: | Tue, 20 Nov 2001 11:56:25 +0000 |
| Subject: | Re: How to check what country the user is comming from ? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-75231@lists.php.net to get a copy of this message | ||
On Tue, 20 Nov 2001, Fly wrote:
> thx Kamil Muszynski
Practically, you can't.
Technically, you can. Take the IP, run it through whois.arin.net. If that
returns apnic, ripe etc, run it through those.. you might get the answer you
want. Calls to apnic etc are probably blocking calls - slowing down your
page load. Or make this a standalone daemon that feeds a DB.
If there are built in PHP commands, I don't know of them.
--
Sapere aude
My mind not only wanders, it sometimes leaves completely.
Never attribute to malice that which can be adequately explained by stupidity.