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.
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!