Advanced search  

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Pages: [1]   Go Down

Author Topic: zlib.output_compression problem  (Read 3705 times)

0 Members and 1 Guest are viewing this topic.

stevekwok

  • Coppermine newbie
  • Offline Offline
  • Posts: 4
zlib.output_compression problem
« 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
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
zlib.output_compression problem
« Reply #1 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
Logged

stevekwok

  • Coppermine newbie
  • Offline Offline
  • Posts: 4
zlib.output_compression problem
« Reply #2 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
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
zlib.output_compression problem
« Reply #3 on: March 16, 2004, 08:38:51 am »

probably. Switch compression off, who needs it anyway?

GauGau
Logged
Pages: [1]   Go Up
 

Page created in 0.018 seconds with 19 queries.