代码
function Index() {
//实时显示输出
ob_end_flush();//关闭缓存
set_time_limit(0);
for($i=0;$i<10;$i++){
echo "Now Index is :". $i."<br>";
flush();
sleep(1);
}
//$this->PrintHeader();
//$this->test();
}配置
'TMPL_CACHE_ON' => false,
'ACTION_CACHE_ON' => false,
'HTML_CACHE_ON' => false,每次还是运行完了后,一起输出的