GitBucket
4.21.2
Toggle navigation
Snippets
Sign in
Files
Branches
1
Releases
Issues
Pull requests
Labels
Priorities
Milestones
Wiki
Forks
nigel.stanger
/
Digital_Repository
Browse code
- Added a small test script for GeoIP.
master
1 parent
4bbde82
commit
76e0cbf1b9937b6c479e730c245ff8ddf89e2354
nstanger
authored
on 17 Jan 2007
Patch
Showing
1 changed file
Repositories/Misc/geoip_test.php
Ignore Space
Show notes
View
Repositories/Misc/geoip_test.php
0 → 100755
<?php include("geoip.inc"); // change the first argument to the correct location of the GeoIP.dat file. $gi = geoip_open("/sw/share/GeoIP/GeoIP.dat",GEOIP_STANDARD); print geoip_country_code_by_addr($gi, "139.80.64.99") . "\n"; print geoip_country_name_by_addr($gi, "139.80.64.99") . "\n"; ?>
Show line notes below