Menu

compression of PHP pages (CGI)

Help
Anonymous
2002-09-25
2004-03-03
  • Anonymous

    Anonymous - 2002-09-25

    compression of .ASP pages is working ok, (and of course .HTML), but not the output of .PHP pages

    is this a limitation of the way it works (ie, CGI vs ISAPI in IIS etc), or just a bug ?

    (using php installed as cgi, since the isapi version of php is too unstable)

    Louis

     
    • Uli Margull

      Uli Margull - 2002-09-25

      HI Louis,
      my guess would be: the php response does not use the content-length header for the response size. flatcompression only works when the content-length is set.
      Maybe You can change Your php setup, so that for each response the content-length is calculated.
      Otherwise, I dont know how to help. Chunking mode compression is on my list, but I am not sure whether I'll find enough time in 2002.

      So long,

      Uli Margull

       
    • rt

      rt - 2004-03-03

      try using the zlib compression built into newer versions of php .. just put

      <?php ob_start( 'ob_gzhandler' ); ?>

      at the top of each php page which you want to be compressed (or better yet in a common include file)

       

Log in to post a comment.