PHP Output buffering, Content Encoding Error caused by ob_gzhandler?

Viewed 16196

Can anyone explain why I am receiving the following error?

In the code, if the echo $gz; is commented out I receive no error (but also no output!), if it isn't I get (from Firefox),

Content Encoding Error


The page you are trying to view cannot be shown because it uses an invalid or unsupported form of compression.


Thanks for your help, here's the code:

ob_start('ob_gzhandler') OR ob_start();
echo 'eh?';
$gz = ob_get_clean();
echo $gz;
2 Answers
Related