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 -
Thanks for your response and for keeping the thread marked as “New” for visibility. I appreciate it. Hopefully, another PHP developer or someone with experience in this area can share some helpful insights or suggestions.
0 -
AI can share a whole lot of insight. Just take the body of the first message, and paste it into google.com -- AI mode. Or ChatGPT/Claude or whatever. And you'll be amazed at how much help it can be.
0
Please sign in to leave a comment.
Comments
4 comments