Getting error
PHP Notice: Undefined variable: do_not_compress
in my php code.
session_start();
if (substr_count($_SERVER['HTTP_ACCEPT_ENCODING'], 'gzip') && !$do_not_compress) {
ob_start('ob_gzhandler');
} else {
ob_start();
}
I tried to remove the && !$do_not_compress
then throw another error
PHP Warning: ob_start(): output handler 'ob_gzhandler' cannot be used twice.
PHP Warning: ob_start(): failed to create buffer
Please help to fix this issue.