復制代碼 代碼如下:
 
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; 
} 
復制代碼 代碼如下:
 
function get_ip_arr() 
{ 
$ip=file_get_contents("http://fw.qq.com/ipaddress"); 
preg_match_all("http://"(.*)/"/",$ip,$arr); 
return $arr; 
} 
新聞熱點
疑難解答