Re: Output buffering - saving + echoing

From: Date: Wed, 15 Dec 2004 14:22:28 +0000
Subject: Re: Output buffering - saving + echoing
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-204399@lists.php.net to get a copy of this message
Hi, "Brent Baisley" <brent@landover.com> wrote in message news:D5512475-4E9E-11D9-8576-000A95CD828E@landover.com... > Not exactly sure what your question is. You want to catch the buffer, > but don't delay the buffer to be sent??? > If your question is that you want to hold the contents of the buffer > and send it only when you are ready, don't use ob_end_flush, use > ob_end_clean. The buffer is cleared without sending anything to the > client. The buffer contents are still retained in the variable $buf. > When you are ready, you can just echo $buf. Thanks, but this is now what i meant for. I want the script to output data as regular like not using buffering. But I want to catch output chunks in variables. How this can be done? thanks, Lorderon.

« previous php.general (#204399) next »