Firefox content encoding Error _php tutorial

Source: Internet
Author: User
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 ...

  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.