首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 开发语言 > 编程 >

经过IP获取地理位置

2012-10-30 
通过IP获取地理位置function get_ip_place(){$ipfile_get_contents(http://fw.qq.com/ipaddress)$ips

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

热点排行