Re: Ouput buffer and vertual()

From: Date: Fri, 10 Sep 2004 13:43:57 +0000
Subject: Re: Ouput buffer and vertual()
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-196304@lists.php.net to get a copy of this message
Ok, thanks! John Holmes wrote:
From: "Ivik Injerd" <stuff01@zavaboy.com>
--- test.php: ob_start(); virtual("blah.pl"); $tmp = ob_get_contents(); echo "\n[ TMP: $tmp ]"; ob_end_clean(); --- test.php (output): blah [ TMP: ] Looks like vertual() gets past the output buffer. How can I keep it in the buffer?
I believe a RTFM is in order here. Quote: "To run the sub-request, all buffers are terminated and flushed to the browser, pending headers are sent too." You can assume the good F or the back F, it's up to you. :) ---John Holmes...
-- Ivik Injerd [ www.zavaboy.com ]

« previous php.general (#196304) next »