Home > Backend Development > PHP Problem > How to turn off gzip in php

How to turn off gzip in php

藏色散人
Release: 2023-03-03 12:24:01
Original
3284 people have browsed it

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();
Copy after login

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!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template