note 49569 modified in function.flush by dmytton

From: Date: Wed, 06 Apr 2005 15:38:09 +0000
Subject: note 49569 modified in function.flush by dmytton
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-87590@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 also print the warning. --was-- 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. http://php.net/manual/en/function.flush.php

« previous php.notes (#87590) next »