thenewperson Posted December 12, 2009 Share Posted December 12, 2009 Hey i read i could compress files by adding gzip=yes. So i was wondering will the file be uploaded as zip file and will i be able to see it? or does it decompress after the upload and look the same as it started? Link to comment https://forums.phpfreaks.com/topic/184910-compressing-files/ Share on other sites More sharing options...
teamatomic Posted December 13, 2009 Share Posted December 13, 2009 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 More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.