| 1 |
## Description
|
| 2 |
|
| 3 |
This is a simple APIs for obtaining country information by given
|
| 4 |
an IPv4 address.
|
| 5 |
|
| 6 |
## Requirements
|
| 7 |
|
| 8 |
This module requires Drupal 5 or greater.
|
| 9 |
|
| 10 |
## Installation
|
| 11 |
|
| 12 |
1. Extract the archive into `sites/all/modules`
|
| 13 |
2. Enable the module in `admin/build/modules`
|
| 14 |
3. Customize configurations in `admin/settings/ip2cc`
|
| 15 |
|
| 16 |
## Update Database
|
| 17 |
|
| 18 |
1. Get the new `ipdb.mysql` from cvs or the archive
|
| 19 |
2. Go to `admin/settings/ip2cc/update`
|
| 20 |
3. Run the update by specifying `start` and `end` manually, e.g.,
|
| 21 |
|
| 22 |
* 1-15000
|
| 23 |
* 15001-30000
|
| 24 |
* 30001-45000
|
| 25 |
* 45001-60000
|
| 26 |
* 60001-75000
|
| 27 |
* 75001-77711
|
| 28 |
|
| 29 |
It is possible to specify `1-77711` if your hosting service allows
|
| 30 |
PHP to run longer enough.
|