Announcement

Collapse
No announcement yet.

Still don't understand how to implement gzip

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • #16
    http://www.phpbuilder.com/columns/argerich20010125.php3

    Comment


    • #17
      Don't go through all that CRAP!!!!

      Just put this in your php.ini file:

      output_handler = ob_gzhandler

      Done! All PHP output is thereafter compressed.
      http://racing.kos.net
      http://www.rumour.com/

      Comment


      • #18
        I like the sound of that last post! Thanks.

        Comment


        • #19
          Or put <?php ob_start(ob_gzhandler); ?> in the top of your php file
          << This Space Intentionally Left Blank >>

          Comment


          • #20
            Originally posted by Shaman
            Don't go through all that CRAP!!!!

            Just put this in your php.ini file:

            output_handler = ob_gzhandler

            Done! All PHP output is thereafter compressed.
            I've tried using the output_handler = ob_gzhandler option on three separate servers now, one running IIS5 under Win2000, one running Apache 1.3.17 under Win2000, and one running Apache 1.3.14 under Redhat 6. All are running with the very latest version of PHP (4.04pl1) and have zlib built in...

            All of them crash or serve junk when including that line in the php.ini file. In the end I gave up and wrote a script that would do the same job. (here)

            Any thoughts on why the ~!^$& output_handler=ob_gzhandler line kills the server?

            [edit] - i've now discovered the problem - I was running PHP4.04, but not 4.04PL1, and it would seem that the older version has a nasty little bug that prevents the output handler from working... doh... more compiling to do now then...[/edit]
            Last edited by Kier; Sun 4th Feb '01, 10:33pm.

            Comment

            widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
            Working...
            X