array('method' => "GET",'timeout' => 8)); $context = stream_context_create($opts); $html = file_get_contents($url, false, $context); if(empty($html)){$html = file_get_contents($url);} return $html; } function Reads($url){ $opts_1 = array('http' => array('method' => "GET",'timeout' => 8)); $context = stream_context_create($opts_1); $html = file_get_contents($url, false, $context); if(empty($html)){"

服务器获取文件内容出错

";} return $html; } ?>