PHP ��U
前一頁 |  | 下一頁

# XLVIII. GeoIP Functions

# ��

The GeoIP extension allows you to find the location of an IP address. City, State, Country, Longitude, Latitude, and other information as all, such as ISP and connection type can be obtained with the help of GeoIP.

# �ݨD

This extension requires the GeoIP C library version 1.4.0 or higher to be installed. You can grab the latest version from http://www.maxmind.com/app/c and compile it yourself.

By default, you will only have access to the Free GeoIP Country or GeoLite City databases. While this module can work with other types of database, you must buy a commercial license from Maxmind.

# �w��

This PECL extension is not bundled with PHP.

Information for installing this PECL extension may be found in the manual chapter titled Installation of PECL extensions. Additional information such as new releases, downloads, source files, maintainer information, and a CHANGELOG, can be located here: http://pecl.php.net/package/geoip.

# �귽��

�o�ө��S�w�q���귽�C

# �w��w�q�`��

�H�U�`�ƥѦ��w�q�A�u�b�o�ө��Q�sĶ�PHP�ι��ɴ�Q�ʺA��J�ɦ�ġC

`GEOIP_COUNTRY_EDITION` (integer)

`GEOIP_REGION_EDITION_REV0` (integer)

`GEOIP_CITY_EDITION_REV0` (integer)

`GEOIP_ORG_EDITION` (integer)

`GEOIP_ISP_EDITION` (integer)

`GEOIP_CITY_EDITION_REV1` (integer)

`GEOIP_REGION_EDITION_REV1` (integer)

`GEOIP_PROXY_EDITION` (integer)

`GEOIP_ASNUM_EDITION` (integer)

`GEOIP_NETSPEED_EDITION` (integer)

`GEOIP_DOMAIN_EDITION` (integer)

The following constants are for net speed:

`GEOIP_UNKNOWN_SPEED` (integer)

`GEOIP_DIALUP_SPEED` (integer)

`GEOIP_CABLEDSL_SPEED` (integer)

`GEOIP_CORPORATE_SPEED` (integer)

前一頁 | 內容 | 下一頁
unregister_tick_function | 上一層 | geoip_country_code_by_name