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.
Manuel Lemos - 2007-03-10 07:50:21 - In reply to message 3 from robertsnoog
The problem mentioned in the article is more with old browsers.
Your problem may be due to those headers that you add to the response.
There are certain versions of Windows and Internet Explorer that give problems when open external programs to handle files being downloaded. If the user saves the file to disk first, that avoids the problem.