Using a shared web host (HostGator).
I'm trying to add gzip compression to a web site where I'm already doing pass-through file writing via php using URL redirection. I added ..
ob_start("ob_gzhandler");
.. to the top of of my URL handler PHP file, and also for a time I had ob_flush(); at the bottom. (Couldn't add ob_gzhandler to my .htaccess file as that resulted in Apache's failure to recognize "php_value".)
This worked in the sense that the files properly get gzipped. Unfortunately, it also caused the PHP file to slow down, where previously it took a split second, now it took something more like five seconds, just so spit out what came from a one-line .txt file.
Obviously I had to disable that quick!
What's wrong? What happened?