`<?php
$nowtime=time();
$pastsec = $nowtime - $_GET["t"];
if($pastsec<600) { exit; //10 分钟更新一次,时间可以自己调整 } ob_start(); //打开缓冲区 include("index.php"); $cOntent= ob_get_contents(); //得到缓冲区的内容 $content .= "\n<script language=Javascript src='http://www.v2ex.com/index/thumb.png' data-original="html.php?t=".$nowtime.""></script>"; //加上调用更新程序的代码
file_put_contents("index.html",$content); if (!function_exists("file_put_contents")) { function file_put_contents($fn,$fs) { $fp=fopen($fn,"w+"); fputs($fp,$fs); fclose($fp);
} } ?>`
以上代码用于生成 typecho 首页 index.html ,运行时提示错误: Warning: Undefined array key "t" in /www/onlineps.top/learn/html.php on line 3 求助高手帮我改写以上代码。

