Home  >  Article  >  Backend Development  >  How to turn off gzip in php

How to turn off gzip in php

藏色散人
藏色散人Original
2020-07-28 10:57:313252browse

How to turn off gzip in php: first use the "ob_start('ob_gzhandler');" method to turn on gzip compression; then use the "ob_end_clean();" method to turn off gzip compression.

How to turn off gzip in php

Recommended: "PHP Tutorial"

php cancels gzip compression in the program

If the previous program uses

ob_start('ob_gzhandler');

to enable gzip compression and you don’t want to use it during execution, you can use:

ob_end_clean();ob_start();

to undo. .

The above is the detailed content of How to turn off gzip in php. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn