PHP Output buffering, Content Encoding Error caused by ob_gzhandler?
问题 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; 回答1: The output of your application should only contain