<?php
header(“Content-Type:text/html;charset=gb2312”);
date_default_timezone_set(‘Asia/Chongqing’);
echo ‘Zone:’.date(“T PRC”).'<br/>’;
echo ‘Time:’.date(“Y-m-d h:i:s”);
?>
<?php
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();
echo ‘IP:’.$ip[0];
echo ‘Form:’.$ip[2].$ip[3];
?>