note 90529 modified in function.ob-flush by danbrown

From: Date: Mon, 27 Apr 2009 14:28:59 +0000
Subject: note 90529 modified in function.ob-flush by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-153818@lists.php.net to get a copy of this message
For some reason, calling just flush or ob_flush or even both together did not get my output buffers flushed, and calling ob_end_flush by itself didn't work either but calling them all worked well. Here is my new output flushing function. <?php function flush_buffers(){ ob_end_flush(); ob_flush(); flush(); ob_start(); } ?> Enjoy --was-- For some reason, calling just flush or ob_flush or even both together did not get my output buffers flushed, and calling ob_end_flush by itself didn't work either but calling them all worked well. Here is my new output flushing function. function flush_buffers(){ ob_end_flush(); ob_flush(); flush(); ob_start(); } Enjoy http://php.net/manual/en/function.ob-flush.php

« previous php.notes (#153818) next »