Skip to content
This repository has been archived by the owner on Jun 1, 2022. It is now read-only.

Commit

Permalink
Add GeoIPNetspeedCell example
Browse files Browse the repository at this point in the history
  • Loading branch information
borisz committed Mar 23, 2012
1 parent ef9dcab commit 576d2d1
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions sample_netspeedcell.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#!/usr/bin/php -q
<?php

include("geoip.inc");

$gi = geoip_open("/usr/local/share/GeoIP/GeoIPNetSpeedCell.dat",GEOIP_STANDARD);

$netspeed = geoip_name_by_addr($gi,"24.24.24.24");

print $netspeed . "\n";

geoip_close($gi);

?>

0 comments on commit 576d2d1

Please sign in to comment.