re: [PHP] IP address from which country
| From: | STHK/Zh) | Date: | Wed, 09 Jan 2002 02:00:41 +0000 |
| Subject: | re: [PHP] IP address from which country | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-79837@lists.php.net to get a copy of this message | ||
Thank you Andrew,but in China mainland ,I saw many websites can even tells
the province information which the user come from and I think in USA the
State information can also be gotten from the visitor's ip address.BTW,in
PHP what we can get is just the ip address of the user how can we get the
host name ?Anything missed here?
Regards
Leon
-----原始邮件-----
发件人: Andrew Brampton [mailto:andrew@bramp.freeserve.co.uk]
发送时间: 09 January, 2002 9:46
收件人: Zhang, Leon (STHK/Zh)
抄送: php-general@lists.php.net
主题: Re: [PHP] IP address from which country
No such table, the best you can do is look at their hostname and parse the
last part ie .co.uk or .com... And then u can try and figure where they are
from that
Andrew
----- Original Message -----
From: Zhang, Leon (STHK/Zh)
To: php-general@lists.php.net
Sent: Wednesday, January 09, 2002 1:03 AM
Subject: [PHP] IP address from which country
Hi,
In php ,we can easily get the ip address of a connected computer ,but I
always see on the web that there are some pages can tell you where you are
from,so there must be a complete table show the relation of the ip address
and country or region ,where can I find this .
Thanks .
Leon
----------------------------------------------------------------------------
--
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
For additional commands, e-mail: php-general-help@lists.php.net
To contact the list administrators, e-mail: php-list-admin@lists.php.net