scriptygoddess

14 Jan, 2003

php class to gzip encode served content

Posted by: promoguy In: Scripts

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

January 14th, 2003 at 12:21 pm

Avatar

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

January 15th, 2003 at 10:31 am

Avatar

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

3 | Mandy

September 26th, 2003 at 10:47 pm

Avatar

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

Featured Sponsors

Genesis Framework for WordPress

Advertise Here


  • Scott: Just moved changed the site URL as WP's installed in a subfolder. Cookie clearance worked for me. Thanks!
  • Stephen Lareau: Hi great blog thanks. Just thought I would add that it helps to put target = like this:1-800-555-1212 and
  • Cord Blomquist: Jennifer, you may want to check out tp2wp.com, a new service my company just launched that converts TypePad and Movable Type export files into WordPre

About


Advertisements