Jump to content

Compressing files


thenewperson

Recommended Posts

Yes and no.

 

If you use mod_gzip you have two options. Apache can zip it on the fly and send it to the browser or you can have index.php and index.gz and if the browser supports gziped files then it will send the gz file else it sends the php file. But this is a PITA as mod_gzip is no fun and lots of hosts dont have it implimented.

 

It is much simpler to add to the top(must be the first thing) of each page:

<? ob_start("ob_gzhandler"); ?>

 

Simple as that. Really saves bandwidth on free or limited sites.

 

 

HTH

Teamatomic

Link to comment
https://forums.phpfreaks.com/topic/184910-compressing-files/#findComment-976368
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.