Re: ob_gzhandler problems under 4.3.0???

From: Date: Sat, 22 Feb 2003 01:53:53 +0000
Subject: Re: ob_gzhandler problems under 4.3.0???
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-136578@lists.php.net to get a copy of this message
Thanks. Worked like a charm... Jason Sheets wrote:
PHP is starting output buffering automatically for you and then you are starting it in your script as well, that is why you are receiving the message ob_gzhandler can not be used twice. Use ob_get_level to check if output buffering is not already started. <?php // start output buffering if it is not already running if (0 == ob_get_level()) { ob_start('ob_gzhandler'); } ?> You may want additional logic that checks to see if the output buffer hander is ob_gzhandler. Jsaon -- Gerard Samuel http://www.trini0.org:81/ http://test1.trini0.org:81/


« previous php.general (#136578) next »