定时生成静态的PHP代码出错了,急!!!!!!!!
大伙帮我看一下,以下的这段代码是每五分钟自动对首页进行生成静态,可是执时时为何提示:
FastCGI Error
The FastCGI Handler was unable to process the request.
--------------------------------------------------------------------------------
Error Details:
The FastCGI process exceeded configured activity timeout
Error Number: 258 (0x80070102).
Error Description: µÈ´ýµÄ²Ù×÷¹ýʱ¡£
HTTP Error 500 - Server Error.
Internet Information Services (IIS)
代码如下:
<?php
ignore_user_abort();
set_time_limit(0);
$interval=60*5;
$filename="index.html";
do{
$fp=fopen("http://www.baidu.com","r");
$fcontents=file_get_contents("http://www.baidu.com");
$file=fopen($filename,'w');
fwrite($file,$fcontents);
fclose($fp);
fclose($file);
sleep($interval);
}while(true);
?>