时间:2021-07-01 10:21:17 帮助过:20人阅读
array(
'method' => 'GET',
'timeout' => 3
)
);
$context = stream_context_create($opts);
$url = "www.google.com";
$text = @file_get_contents($url,false,$context,-1,100);
if($text==FALSE){
return FALSE;
}
return TRUE;