Manuel Lemos - 2006-09-27 16:54:42 -
In reply to message 1 from Gene Comer
Yes, you are right, I forgot to mention that alternative.
I have discarded ob_gzhandler in the past because the PHP manual is wrong where it states that all browsers that send Accept-Encoding: gzip really support gzip compression correctly. The reality is different though, as documented in the mod_gzip page.
I ended up using mod_gzip also because it is the fastest way to add compression to your pages. With simple configuration rules, you can exclude all problematic cases without having to touch your PHP code.
Additionally, mod_gzip can compress static HTML pages and pages generated by scripts in other languages besides PHP.