资 源 简 介
GeoIP Plugin for CodeIgniter
Written By Paul Trippett (paul_at_softlab-bss_com)
To use this plugin you must create a table in your database with the following schema: -
CREATE TABLE `geoip` ( `id` int(10) unsigned NOT NULL auto_increment, `ip_start` varchar(15) NOT NULL, `ip_end` varchar(15) NOT NULL, `ipnum_start` float NOT NULL, `ipnum_end` float NOT NULL, `country_code` char(2) NOT NULL, PRIMARY KEY (`id`), KEY `geoip_lookup` USING BTREE (`ipnum_start`,`ipnum_end`) ) ENGINE=InnoDB;
Place this file in your application/plugins/ directory and download the following files in to the {ci_root}/updates/geoip/ directory.
ftp://ftp.afrinic.net/pub/stats/afrinic/delegated-afrinic-latestftp://ftp.apnic.net/pub/stats/apnic/delegated-apnic-latestftp://ftp.arin.net/pub/stats/arin/delegated-arin-latestftp://ftp.lacnic.net/pub/stats/lacnic/delegated-lacnic-latestftp://ftp.ripe.net/ripe/stats/delegated-ripencc-latestftp