Changeset 17924 for branches/comu-ver2/data/class/util/SC_Utils.php
- Timestamp:
- 2009/03/24 18:17:38 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/comu-ver2/data/class/util/SC_Utils.php
r17897 r17924 1547 1547 } 1548 1548 1549 function sfFlush($output = " ", $sleep = 0){ 1550 ob_flush(); 1549 /** 1550 * ブラウザに強制的に送出する 1551 * 1552 * @param boolean|string $output 半角スペース256文字+改行を出力するか。または、送信する文字列を指定。 1553 * @return void 1554 */ 1555 function sfFlush($output = false, $sleep = 0){ 1551 1556 // 出力をバッファリングしない(==日本語自動変換もしない) 1552 ob_end_clean(); 1553 1554 // IEのために256バイト空文字出力 1555 echo str_pad('',256); 1556 1557 // 出力はブランクだけでもいいと思う 1558 echo $output; 1557 while (@ob_end_flush()); 1558 1559 if ($output === true) { 1560 // IEのために半角スペース256文字+改行を出力 1561 //echo str_repeat(' ', 256) . "\n"; 1562 echo str_pad('', 256) . "\n"; 1563 } else if ($output !== false) { 1564 echo $output; 1565 } 1566 1559 1567 // 出力をフラッシュする 1560 1568 flush(); … … 2006 2014 } 2007 2015 2008 /**2009 * 出力バッファをフラッシュし, バッファリングを開始する.2010 *2011 * @return void2012 */2013 function flush() {2014 flush();2015 ob_end_flush();2016 ob_start();2017 }2018 2019 2016 /* デバッグ用 ------------------------------------------------------------------------------------------------*/ 2020 2017 function sfPrintR($obj) {
Note: See TracChangeset
for help on using the changeset viewer.