You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+19-7Lines changed: 19 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -29,13 +29,13 @@ Upload `Controllers`, `Libraries` and `Models` to CodeIgniter `app` folder.
29
29
This module is able to query the IP address information from either BIN database or web service. This section will explain how to use this extension to query from BIN database and web service.
30
30
31
31
Sample codes are given in this project, under **Controllers** folder. After added the following line into the *app\Config\Routes.php* file, you may run the sample code by using <your_domain>/index.php/ip2location_test.
Use following codes in your application for get geolocation information.
38
-
```
38
+
```php
39
39
// (optional) Define IP2Location database path. By default, the IP2LOCATION_DATABASE is pointed to *app/Libraries/IP2Location/IP2LOCATION-DB.BIN* if you choose not to change the original settings.
@@ -128,7 +140,7 @@ An outdated BIN database was provided in this release for your testing. You are
128
140
129
141
For the BIN database update, you can just rename the downloaded BIN database to *IP2LOCATION-DB.BIN* and replace the copy in *app/Libraries/IP2Location/* (if you didn't change the default IP2LOCATION_DATABASE constant as described in the Usage section).
130
142
131
-
You can also sign up for [IP2Location Web Service](https://www.ip2location.com/web-service/ip2location) to get one free API key.
143
+
You can also sign up for [IP2Location Web Service](https://www.ip2location.com/web-service/ip2location)or [IP2Location.io IP GEOLOCATION API](https://www.ip2location.io/sign-up)to get one free API key.
132
144
133
145
## IPv4 BIN vs IPv6 BIN
134
146
* Use the IPv4 BIN file if you just need to query IPv4 addresses.
0 commit comments