Using a PHP program with a browser to access the Firefox prompt content encoding error cannot display the page you are trying to view, because it uses an invalid or unsupported compression format, and under IE is ' The page can not be displayed ', using the thinkphp framework, has not known what the reason, and then step by step, the original program used in the Ob_start (' Ob_gzhandler ') caused.
To solve this problem, it is very simple, the following two problems may cause this problem.
1, the server does not support this compression format, can use Function_exists (' Ob_gzhandler ') judgment, the solution ob_start (' Ob_gzhandler ') changed to Ob_start ();
2, the use of Ob_start (' Ob_gzhandler ') when the previous content output, check the contents of the previous content and require include call file. If unable to find can use Ob_start () before calling other files, use Ob_end_clean () to clear the output after the call;
The mistake I made was because I had output before ob_start. That's why the program doesn't work.
http://www.bkjia.com/PHPjc/371830.html www.bkjia.com true http://www.bkjia.com/PHPjc/371830.html techarticle using a PHP program with a browser to access the Firefox prompt content encoding error cannot display the page you are trying to view, because it uses an invalid or unsupported compression format, and under IE ...