Re: Buffering

From: Date: Thu, 16 Dec 2004 14:01:29 +0000
Subject: Re: Buffering
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-204487@lists.php.net to get a copy of this message
On Thursday 16 December 2004 19:25, Lorderon wrote: > 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. If you can't get want you want by manipulating the ob_*() functions then try to structure your program so that all output is the result of explicit echo/print. Then it's just a simple matter to store them into a string before you output it. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * ------------------------------------------ Search the list archives before you post http://marc.theaimsgroup.com/?l=php-general ------------------------------------------ /* Happiness, n.: An agreeable sensation arising from contemplating the misery of another. -- Ambrose Bierce, "The Devil's Dictionary" */

« previous php.general (#204487) next »