Jump to content

GZIP and effect on Server load ?

Guest Defenestration

Recommended Posts

How do you change the compression?


ob_gzhandler compression level use zlib.output_compression_level, which is -1 per default, level 6.

To change the compression level on the fly, simply use ini_set:


ini_set('zlib.output_compression_level', 1);


echo 'This is compressed at level 1';


Note that I haven't really played around with this much - I've set compression level in scripts when using zlib.output_compression, but not ob_gzhandler. It's safer to just leave it on the server default usually.
Link to comment
Share on other sites


This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...