【www.gdgbn.com--qq教程】

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


$ip=get_ip_place();


print_r($ip);
?>

本文来源:http://www.gdgbn.com/bangongshuma/23251/