note 49569 added to function.flush
| From: | Squ1sher at osu1 dot php dot net | Date: | Tue, 01 Feb 2005 20:25:12 +0000 |
| Subject: | note 49569 added to function.flush | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-84345@lists.php.net to get a copy of this message | ||
On Windows xampp 1.3 with php 4.3.4 is use this functions
to force a flush.
<?php
function dummyErrorHandler ($errno, $errstr, $errfile, $errline) {
}
function forceFlush() {
ob_start();
ob_end_clean();
flush();
set_error_handler("dummyErrorHandler");
ob_end_flush();
restore_error_handler();
}
?>
ob_end_flush generates a warning, which is supressed, using the dummy-errorhander. You could also
use @, but then nusphere will although print the warnign.
----
Manual Page -- http://www.php.net/manual/en/function.flush.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+49569
Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+49569&report=yes&reason=added+to+the+manual
Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+49569&report=yes&reason=bad+code
Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+49569&report=yes&reason=spam
Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+49569&report=yes&reason=useless
Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+49569&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+49569&report=yes
Search -- http://master.php.net/manage/user-notes.php