Saturday July 31, 2010 @ 04:15:10 GMT+10    ( Weather:  18°C / 64°F  -  Partly Cloudy )
Home » Weblog Archives

Powered byD's Bloggie
Weblog » Archive » 2007 » June » Day 14
Browse by day ...
 03 June, 200715 June, 2007 

How to enable Gzip compression on output buffer - 12:59 pm
Browser , Coding , Guides , PHP  -  poster 

I've been updating this site since last month. One of the things I added is able to serve gzip-encoded page. On top of that, my site is also able to serve gzip-encoded CSS and JS file heh Just scroll to the bottom of every page and you'll notice a line that says something like "Gzip enabled , CSS compressed , JS compressed". This will give an indication whether they are enabled or not. In other words, this will make pages load faster as well as saving some tiny bandwidth.

I've written a how-to thing that gives you an idea how to achieve that with PHP using ob_gzhandler(). For this to work you'll need the appropriate version of PHP, zlib extension and web browser that supports compressed web page.

Link: [PHP] How to enable Gzip compression on output buffer

Next topic will be on how to shrink, compress and cache CSS/JS files. Those who're using heavy AJAX and CSS styling will benefit from this.
 03 June, 200715 June, 2007 
$ view_blog.php 2009.09.17 18:16:41 $
Lost? | XML/HTML sitemap | Contact
38.107.191.88 , 19 queries , 0.0439s
Gzip enabled , CSS compressed , JS compressed
Copyright © 2005-2009 Darren's Outpost