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.
January 14th, 2003 at 12:21 pm
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”); ?>
January 15th, 2003 at 10:31 am
Hey, I used that. My site now is quicker. Kinda nice…
September 26th, 2003 at 10:47 pm
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