注冊關閉函式,加快页面顯示(PHP)

日期:2006-08-07  作者:喜騰小二  來源:PHPChina


轉自:http://axgle.php5.cz/phpword.php?id=48

  1. /* echo "本句話立刻顯示,下麵的do_something_demo函式將在後臺執行,例如更新資料庫等等
    "
    ; $sd=new shutdown('do_something_demo'); "中間也來寫幾個字,同樣是可以的(只要是在->exe之前)"; $sd->exec(); do_something_demo() { sleep(10); shutdown { shutdown($name) { register_shutdown_function($name); exec() { str_pad('',10000); flush(); ?>
  2.  
  3. @title:注冊關閉函式,加快页面顯示(PHP)
  4. @version:0.0000000000000001 beta
  5. @author:axgle
  6.  */
  7.  
  8.  
  9.  
  10.  
  11. echo 
  12.  
  13.  
  14.  
  15. function 
  16.     
  17. }
  18.  
  19. class 
  20.  
  21.     function 
  22.         
  23.     }
  24.  
  25.     function 
  26.         echo 
  27.         
  28.     }
  29.  

<<<返回技術中心

技術文章

站內新聞

我要啦免费统计