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. Дополнительная информация, такая как новый версии, скачивание, исходные файлы, информация о разработчике и CHANGELOG, могут быть найдены здесь: http://pecl.php.net/package/geoip. Типы ресурсовДанное расширение не определяет никакие типы ресурсов. Предопределенные константыПеречисленные ниже константы определены данным расширением и могут быть доступны только в том случае, если PHP был собран с поддержкой этого расширения или же в том случае, если данное расширение подгружается во время выполнения.
The following constants are for net speed:
GeoIP Functions
php dot comment dot addition at gmail dot com
10-Jun-2007 08:57
Just to clarify the other comments, the maxmind post seems to be out of date / incorrect.
tjmather at maxmind dot com
26-Feb-2007 08: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.
26-Jan-2007 05: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
16-Nov-2006 07:59
If you want to use this extension in SUSE/openSUSE, it is available here:
Christian
13-Sep-2006 05: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 01:34
If you are a Debian or Ubuntu user, instead of building it from source, you can: |