Php obtains all the information (such as the address, postal code, country, and latitude and longitude) of the specified IP address. Php obtains all the information (such as address, zip code, country, and latitude and longitude) of a specified
PHP gets all the information (address, ZIP code, country, latitude, longitude, etc.) of the specified (guest) IP, all information latitude and longitude
This example describes how PHP obtains all the information (address, postal code, country,
This article describes how to obtain all the information (such as the address, zip code, country, and latitude and longitude) of a specified IP address in php, it is very simple and practical to call an API to query visitor information,
This article
GeoIP + PHP Usage
Method One:
Download GeoIP PHP file Geoip.inc, save as Geoip.inc.php
Http://sjolzy.cn/php/GeoIP/bak/geoip.inc
PHP uses code
Note: If you test locally because $_server[' remote_addr ' and $_server[' REMOTE_ADDR '] may be 127.0
GeoIP + PHP UsageMethod One:Download GeoIP PHP file Geoip.inc, save as Geoip.inc.phpHttp://sjolzy.cn/php/GeoIP/bak/geoip.incPHP uses codeNote: If you test locally because $_server[' remote_addr ' and $_server[' REMOTE_ADDR '] may be 127.0.0.1, the
Php obtains all information (such as address, zip code, country, and latitude and longitude) of a specified IP address.
This example describes how to obtain all the information (such as address, zip code, country, and latitude and longitude) of a
This article describes how to obtain all the information (such as the address, zip code, country, and latitude and longitude) of a specified IP address in php, it is very simple and practical to use an API call to query visitor information. For more
This article describes how to obtain all the information (such as the address, zip code, country, and latitude and longitude) of a specified IP address in php, it is very simple and practical to use an API call to query visitor information. For more
This article provides a detailed analysis of the implementation of php based on ip address query in the region where it is located. if you need a friend, refer to the dat file and the information file about the ip address corresponding to the region.
Dat file, information file about the ip corresponding region
Qqwry. dat file
Download it online by yourself
Class file, parse the qqwry. data FileIpLocation. php fileCopy codeThe Code is as follows: Class IpLocation {/*** @ Var resource
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.