Ip地址查询

1 $url = 'http://ip.taobao.com/service/getIpInfo.php?ip=115.239.211.112';
2 $info = file_get_contents($url);
3 $info = json_decode($info,true);
原文地址:https://www.cnblogs.com/wqy415/p/5476496.html