读书人

经过IP获取地理位置

发布时间: 2012-10-30 16:13:36 作者: rapoo

通过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;}

读书人网 >编程

热点推荐