Try renaming GeoLiteCity.dat to GeoIPCity.dat.
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. 需求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. 安装本 PECL 扩展未绑定于 PHP 中。 安装此 PECL 扩展库的信息可在手册中标题为 PECL 扩展库安装的一章中找到。 更多信息如新版本,下载,源文件,维护者信息以及更新日志等可以在这里找到: http://pecl.php.net/package/geoip. 资源类型本扩展模块未定义任何资源类型。 预定义常量以下常量由本扩展模块定义,因此只有在本扩展模块被编译到 PHP 中,或者在运行时被动态加载后才有效。
The following constants are for net speed:
php dot comment dot addition at gmail dot com
11-Jun-2007 03:57
Just to clarify the other comments, the maxmind post seems to be out of date / incorrect.
tjmather at maxmind dot com
27-Feb-2007 04:09
The geoip_country_*_by_name functions only work with GeoIP Country. The geoip_record_by_name function works with GeoIP City. geoip_region_by_name works with GeoIP Region. So the API should work with all of the GeoIP databases, as long as you call the correct function.
27-Jan-2007 01:23
I couldn't get it to work with the DMA code database (product ID 137). It seems to only work with the country database. The documentation should contain a warning that this code (as of 0.2.0) is incomplete and that Net_GeoIP should be used for non-country databases.
judas dot iscariote at gmail dot com
17-Nov-2006 03:59
If you want to use this extension in SUSE/openSUSE, it is available here:
Christian
13-Sep-2006 12:45
Both, Ubuntu and Debian itself make usage of version 1.3.x of the c libraries, so installation can't be done with the debian packages, because configure stops with:
Matt
08-Sep-2006 08:34
If you are a Debian or Ubuntu user, instead of building it from source, you can: | ||