php 页面每隔一秒输出一次时间

while(1){

ob_flush(); 
flush();
echo date('Y-m-d H:i:s', time());
echo '<br />';
sleep(1);
}

ob_end_flush(); 



@大史

猜你喜欢

转载自blog.csdn.net/bushiyao_/article/details/51386505