Food for thoughts : mixing output_buffer OFF + sending gzipped compressed html....

Operating System & Version
almalinux 8.4
cPanel & WHM Version
98

Jintor

Member
Jul 14, 2021
9
0
1
Canada
cPanel Access Level
Root Administrator
CONTEXT (1) : I know that output_buffer off + gzip output don't "mix" well together.

CONTEXT (1) : But I need output_buffer off.

TEST (1) : In php I can gzcompress();
$a = 'this is a sting'.'<br>';
$b = gzcompress($a,6);
echo $b; // but the result is this x�+��,V�D��̼t��";D���

TEST (2) : if I add ( at the top of my php header('Content-Type:gzip;'); ==> the result is this xœ+ÉÈ,V�¢D…â’̼t›¤";�DáÉ (in the browser)

QUESTION : So is there a way to digg deeper and "tell" the receiving browser to ungzip that output ??
 
Last edited by a moderator: