<?php
function get_ip_place()
{
$content = file_get_contents("http://fw.qq.com/ipaddress");
$content = str_replace('var ', '$', $content);
$content = str_replace('new Array', 'array', $content);
eval($content);
return $IPData;
}
echo "<pre>";
var_dump(get_ip_place());
?>
转载于:https://my.oschina.net/Jacker/blog/32846