A simple example showing how to use the GeoIP API in PHP with the free database from http://maxmind.com
petewarden/geoip_example
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
A simple example showing how to use the GeoIP API in PHP with the free database from http://maxmind.com Before you can run this you'll need to install the data files, either using the one included in this package or downloading the latest from http://www.maxmind.com/app/geolitecity Once you have the GeoLiteCity.dat file downloaded and unzipped, copy it to /usr/local/share/GeoIP (or update the code below to reflect the location you've actually installed it in). Based on code from http://pear.php.net/package/Net_GeoIP/ with the PEAR dependencies removed. Adapted by Pete Warden <pete@petewarden.com> For more details see http://petewarden.typepad.com/ and see http://web.mailana.com/labs/geoip_example/ for a live example. The classes are licensed under the LGPL, but the index script is freely reusable with no restrictions.
About
A simple example showing how to use the GeoIP API in PHP with the free database from http://maxmind.com
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published