add geo ip

This commit is contained in:
tianyu
2015-07-15 09:06:49 +08:00
parent ae00abcdb2
commit c354ccfdef
6 changed files with 273 additions and 0 deletions

7
ip/index2.php Normal file
View File

@@ -0,0 +1,7 @@
<?php
$api_key = "YOUR_DB_IP_KEY(https://db-ip.com/api/)";
require "dbip-client.class.php";
$ip=$_SERVER["REMOTE_ADDR"];
echo $ip;
?>