Forum Moderators: coopster
Also, I just realized what you are saying. Do you know that you cannot use both ob_gzhandler() and zlib.output_compression? Also note that using zlib.output_compression is preferred over ob_gzhandler().
See the notes on the ob_gzhandler() [php.net] pages for more information.
I ended up using zlib.output_compression as it was recommended over ob_gzhandler. I put the following two lines in an .htaccess file in the directory I wanted to compress:
php_flag zlib.output_compression On
php_value zlib.output_compression_level -1
It seems to work fine.
BTW, -1 compression level is the system default. It can range from 0-9 with 9 being the highest compression. I did not see much difference between -1 and 9 so I left it at -1 (default).