时间:2021-07-01 10:21:17 帮助过:6人阅读
$url='www.scutephp.com';
$fp=fsockopen($url,80,&$errno,&$errstr,10);
if(!$fp){
echo "$errstr ($errno)
\n";
}else{
fputs($fp,"GET / HTTP/1.0\nHost: ".$url."\n\n");
while(!feof($fp)){
echo fgets($fp,128);
}
fclose($fp);
}