$ch = curl_init('http://tool.huixiang360.com/zhanzhang/ipaddress.php');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$a = curl_exec($ch);
preg_match('/\[(.*)\]/', $a, $ip);
echo '您现在的IP是: ' , $ip[1] , "\n";
$ch = curl_init('http://tool.huixiang360.com/zhanzhang/ipaddress.php');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$a = curl_exec($ch);
preg_match('/\[(.*)\]/', $a, $ip);
echo '您现在的IP是: ' , $ip[1] , "\n";