通过IP获取地理位置,做分类系统必备!

1 function get_ip_arr()
2 {
3 $ip=file_get_contents("http://fw.qq.com/ipaddress");
4 preg_match_all("/\"(.*)\"/",$ip,$arr);
5 return $arr;
6 }

  

posted on 2011-07-15 17:19  网宗  阅读(285)  评论(0编辑  收藏  举报

糗乐网-糗事|乐事|天下事