php 通过IP获取地理位置
通过IP获取地理位置 [代码片段(10行)]
function get_ip_place() { $ip=file_get_contents("<a href="http://fw.qq.com/ipaddress">http://fw.qq.com/ipaddress"); $ip=str_replace('"',' ',$ip); $ip2=explode("(",$ip); $a=substr($ip2[1],0,-2); $b=explode(",",$a); return $b; } //该片段来自于http://outofmemory.cn
精彩图集
精彩文章