20,359
社区成员
发帖
与我相关
我的任务
分享
<?php
header("content-type:text/html;charset=utf-8");
$url = "http://int.dpool.sina.com.cn/iplookup/iplookup.php?format=json&ip=218.106.255.65";
$json = file_get_contents($url);
if($json !==false){
$myplace = json_decode($json,true);
echo "<pre>";
print_r($myplace);
echo "</pre>";
}
else{
exit("network error! or something else.");
}