Food for thoughts : mixing output_buffer OFF + sending gzipped compressed html....
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'.'
'; $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 ??
'; $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 ??
-
Hey there! I don't know if the cPanel forums will be the best place for answers on this, but it's possible another PHP developer will add their thoughts. I'll leave this thread marked as "New" for a bit for visibility. 0
Please sign in to leave a comment.
Comments
2 comments