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/



--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to