View Full Version : What's wrong with GZIP?
According to phpinfo(), zlib.output_compression is set to off, but when I use ob_gzhandler I get an error referring to multiple use of said function. Any takers?
Jade Dragon
2-16-03, 11:36 AM
http://forum.powweb.com/showthread.php?s=&threadid=16160
Inferno & I have been doing some research on different things which could effect gzip. Inferno has been sucessful in using a personal copy of php.ini with the output_buffering set to "off" or "0"
From what I understand the zlib cannot be changed globally without other peoples scripts also crashing and causing other problems for powweb.
I have read through as much documentation as I can find and seems to me that zlib is a better (newer) compression utility and has been included in the 4.3.0 upgrade. The zlib itself is enabled, but the compression is off.
This is not a Powweb problem.
I do not believe that it is anything to do with zlib in itself. What I believe is happening with gzip and other header errors is it is being called up twice with in the scripts.
Output_buffering: set to ON.
What the output_buffering does is make all the headers true. Or in other words to have headers called between the <head> and </head> tags. The problems arise with the headers are called twice or from various scripts, such as in alot of our modular applications. The gzip handing script is being called more than once, thus causing the script to error because the pages are already being compresses. By setting it to Off allows the header scripts to be overwrote by other headers called from differnet places in the scripts, even those apart from the <head> and </head> tags.
Powweb cannot turn off the output_buffering as a global, this is not an option for them to apease those users (including me) who have badly placed header scripts in applications.
I have not tested all solutions as of yet (lack of time) I will be doing some script rewriting and checking out the output_buffering some more. I am looking for a Valid and Permanent solution to these errors and as soon as I find something which I have thoroughly tested I will post.
:)
JD
This is not a Powweb problem.
Jade,
First I appreciate you trying to find the root of this problem. But I must say that this is indeed a Powweb problem. All of the other IP boards that I have seen hosted by other hosts do not have this GZIP problem.
In fact I never had the problem until Powweb upgraded.
vBulletin v3.6.0, Copyright ©2000-2009, Jelsoft Enterprises Ltd.