[PHP]如何使用 flush() 跟 ob_flush()
Posted in php on Jul 28th, 2008
比如說我們想要緩衝網頁資料,如利用 sleep() 這個函式,那我們不想要等整個 php 執行完畢才輸出畫面,那就是需要緩衝輸出,在 酷學園 的這篇 http://phorum.study-area.org/index.php/topic,52757.0.html 有討論到,所以我實際去測試一下,大概如下:
…詳全文(共269字)
Posted in php on Jul 28th, 2008
比如說我們想要緩衝網頁資料,如利用 sleep() 這個函式,那我們不想要等整個 php 執行完畢才輸出畫面,那就是需要緩衝輸出,在 酷學園 的這篇 http://phorum.study-area.org/index.php/topic,52757.0.html 有討論到,所以我實際去測試一下,大概如下:
…詳全文(共269字)