I need to do two ob_starts....
If we're not allowed two how do we merge them?ob_start("ob_gzhandler");
ob_start("sehl");
I need to do two ob_starts....
If we're not allowed two how do we merge them?ob_start("ob_gzhandler");
ob_start("sehl");
PHP Code:function callback($buffer) {
$buffer = ob_gzhandler($buffer);
$buffer = sehl($buffer);
return $buffer;
}
ob_start('callback');
Peter - alotofstuffhere[dot]com - Email Me - Donate via PayPal - Got spare hardware? Donate 'em to me :) Just send me a PM.
Currently: enjoying the early holidays :)Read before posting: FAQ | What you CAN'T do with JavaScript | Form Rules | Thread Title Naming Guide
You can find the explanation from php.net
"Output buffers are stackable, that is, you may call ob_start() while another ob_start() is active. Just make sure that you call ob_end_flush() the appropriate number of times. If multiple output callback functions are active, output is being filtered sequentially through each of them in nesting order." more..
According to this explanation it is allowed to maintain more than one output buffers.
Bookmarks