Buffering
| From: | Lorderon | Date: | Thu, 16 Dec 2004 11:25:58 +0000 |
| Subject: | Buffering | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-204482@lists.php.net to get a copy of this message | ||
Hi,
"Richard Lynch" <ceo@l-i-e.com> wrote in message
news:1240.24.12.208.246.1103132444.squirrel@www.l-i-e.com...
> Lorderon wrote:
> > What I want to do is "catch" the output buffer, but do not delay the
> > buffer
>
> It occurs to me that maybe you should tell us WHY you want this, because
> there could be existing alternatives outside the scope of PHP that we
> could recommend...
>
I need to store chunks of output into files. I can get the chunk output by
using ob_get_contents(), but after calling ob_start() the output is only
buffered and not sent till flushing. The delay from echoing to flushing is
exactly what I want to avoid. I want to echo the output imediatly and not
just on flushing, but still be able to buffer the chunk and get the output
into variable.
I hope it's clearer now..
thanks,
Lorderon.