suche nach in der

geoip_continent_code_by_name> <Vordefinierte Konstanten
Last updated: Sat, 07 Jan 2012

view this page in

GeoIP Funktionen

Inhaltsverzeichnis



add a note add a note User Contributed Notes
GeoIP Funktionen
eddieREMOVETHIS at yarr dot ca
08-Jul-2007 07:06
Try renaming GeoLiteCity.dat to GeoIPCity.dat.
php dot comment dot addition at gmail dot com
11-Jun-2007 05:57
Just to clarify the other comments, the maxmind post seems to be out of date / incorrect. 

This module fails to work (ie: resolve cities) with the GeoLite City database from here:
http://www.maxmind.com/app/geolitecity

The error occurs when calling the function geoip_record_by_name(), which states incorrectly that the required database is not available.  I have tested it with the very latest database, for which geoip_database_info() returns  the version:
GEO-533LITE 20070601 Build 1 Copyright (c) 2007 MaxMind LLC All Rights Reserved

It does, however, resolve countries OK via the GeoLite Country database, which you can grab here: http://www.maxmind.com/app/geoip_country
I tested with the version:

GEO-106FREE 20070601 Build 1 Copyright (c) 2007 MaxMind LLC All Rights Reserved
tjmather at maxmind dot com
27-Feb-2007 05: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 02: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 04:59
If you want to use this extension in SUSE/openSUSE, it is available here:

http://repos.opensuse.org/server:/php:/extensions/
Christian
13-Sep-2006 02: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:
 
== configure: error: You need version 1.4.0 or higher of the C API ==

so you must download it from maxmind.
Matt
08-Sep-2006 10:34
If you are a Debian or Ubuntu user, instead of building it from source, you can:
aptitude install libgeoip-dev libgeoip1

geoip_continent_code_by_name> <Vordefinierte Konstanten
Last updated: Sat, 07 Jan 2012