two buffers??

From: Date: Wed, 05 Mar 2003 14:40:20 +0000
Subject: two buffers??
Groups: php.general 
Request: Send a blank email to php-general+get-138271@lists.php.net to get a copy of this message
i need to put in a var all the processed contents of a .php file in my directory. The filemust be processed, and its output put in a variable, instead of output to the browser. The simple solution would be to use ob_start() .. .. $var = ob_get_contents() or something like that with ob_ functions, the problem is that i'm already using ob_ function, in particular i put in the beginning of my code a ob_start("ob_gzhandler") , to compress the output. So if I use those funcs twice i'll use the same buffer! Does anyone have solutions?? thanks Mattia

« previous php.general (#138271) next »