通过IP获取地理位置
通过IP获取地理位置
通过IP获取地理位置
function get_ip_place() { $ip=file_get_contents("http://fw.qq.com/ipaddress"); $ip=str_replace('"',' ',$ip); $ip2=explode("(",$ip); $a=substr($ip2[1],0,-2); $b=explode(",",$a); return $b; }
- 上一篇:PHP 二维数组排序
- 下一篇:ThinkPHP自动验证失败及解决方法
精彩图集
精彩文章