note 42979 added to function.ob-end-flush

From: Date: Sat, 05 Jun 2004 13:18:45 +0000
Subject: note 42979 added to function.ob-end-flush
Groups: php.notes 
Request: Send a blank email to php-notes+get-70742@lists.php.net to get a copy of this message
A note on the above example... with PHP 4 >= 4.2.0, PHP 5 you can use a combination of ob_get_level() and ob_end_flush() to avoid using the @ (error suppresion) which should probably be a little faaster. <?php while (ob_get_level() > 0) { ob_end_flush(); } ?> ---- Manual Page -- http://www.php.net/manual/en/function.ob-end-flush.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+42979 Delete -- http://master.php.net/manage/user-notes.php?action=delete+42979&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+42979&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#70742) next »