coppermine-gallery.com/forum

Support => Older/other versions => cpg1.2 Standalone Support => Topic started by: stevekwok on March 13, 2004, 10:44:00 AM

Title: zlib.output_compression problem
Post by: stevekwok on March 13, 2004, 10:44:00 AM
It seems the "flush"s in index.php crash when php.ini configurated with zlib.output_compression = on

Is there any way to make it works with zlib.output_compression on?

Regards,
Steve
Title: zlib.output_compression problem
Post by: Joachim Müller on March 13, 2004, 12:49:54 PM
Quote from: "mlevy at rgj dot com on http://www.php.net/zlib"If you turn zlib.output_compression_level on, be advised that you shouldn't try to flush() the output in your scripts. PHP will add the gzip header but send the output uncompressed, which plays havoc with Mozilla. IE seems to handle it, though.
My advice would be to enable gzip compression instead if possible, since the whole concept of coppermine is based on using output buffering and flushing the content of the page.

GauGau
Title: zlib.output_compression problem
Post by: stevekwok on March 16, 2004, 05:58:37 AM
Quote from: "gaugau"
Quote from: "mlevy at rgj dot com on http://www.php.net/zlib"If you turn zlib.output_compression_level on, be advised that you shouldn't try to flush() the output in your scripts. PHP will add the gzip header but send the output uncompressed, which plays havoc with Mozilla. IE seems to handle it, though.
My advice would be to enable gzip compression instead if possible, since the whole concept of coppermine is based on using output buffering and flushing the content of the page.

GauGau

My situation is when I enable gzip compress of php, I can view the admin page but not the main page (index.php). Everything in IE become garbage. Is my php or apache misconfigured?

Thanks,
Steve
Title: zlib.output_compression problem
Post by: Joachim Müller on March 16, 2004, 08:38:51 AM
probably. Switch compression off, who needs it anyway?

GauGau