【www.gdgbn.com--python】

ignore_user_abort(true);
set_time_limit(0); 
function test(){
    echo "不要迷恋哥,哥只是个定时器!";
    echo date("h:i:s") . "
";
}
function just_do_it(){
  test();
  usleep(2000000);
}
ob_end_clean();
ob_start();
while(1){
    echo str_repeat(" ",1024);
     ob_flush();
     flush();
     just_do_it();
}

本文来源:http://www.gdgbn.com/jiaocheng/24600/