Hi:

I've read that flush() does not work with mod_gziped pages...
I need to disable the mod_gzip JUST for one file...

any ideas ?

thank you

    Hi,

    the output compression can be disabled either in php.ini or per directory. To disable it for just one script you might need to put it in a separate folder and to place a .htaccess file (Apache) in that folder to disable output compression. To do the same with IIS you might need to add a key to the registry.

      Three ways found (i paste the texts found in internet):

      1) I can disable mod_gzip per directory
      My question here is how ??

      2) you can add a new type to httpd.conf (via "AddType application/x-httpd-php .phpx" for example - don't include .phpx-files in mod_gzip then).

      I've done but it doesn't work

      3) add this in httpd.conf
      <IfModule mod_gzip.c>
      <Location /test/flushtest.php>
      mod_gzip_on no
      </Location>
      </IfModule>

      I've done but it doesn't work

        Write a Reply...