php class to gzip encode served content

I ran across “class.gzip_encode.php” whuch is a php class to gzip encode served content to reduce size. It loads your pages faster, reduces server load and makes for a better browsing experience for dial-up users.

This is probably something I will never use, but when I find things like this I like to post them here. I am sure someone will find a use for it.

Get the class file from Leknor.com.

Suggested implementation by Textisim.

3 Responses to “php class to gzip encode served content”

  1. noel Says:

    Actually, you don’t even need that class. You just need to place this at the top of each php file you want served gzipped: <?php ob_start(”ob_gzhandler”); ?>

  2. David Says:

    Hey, I used that. My site now is quicker. Kinda nice…

  3. Mandy Says:

    Hi! I am trying desperately how to turn off mod_gzip in my .htacess file. My webhost refuses to turn it off for me on his end and one of my syndication sites is receiving a parsing error because of this.

    I know this article is about enabling but can anyone disable? Thanks!

    Mandy