Page is a not externally linkable
Hissingsid - 9:18 am on Dec 8, 2009 (gmt 0)
<?php if (substr_count($_SERVER['HTTP_ACCEPT_ENCODING'], 'gzip')) ob_start("ob_gzhandler"); else ob_start(); ?> This checks to see if the browser can deal with gzip and if it can it sends it compressed data otherwise it sends uncompressed. I tested it with GIDZipTest (just Bing for it) and it shows a 60% saving. Cheers Sid PS Forgot to say you can prepend this to each file in your htaccess file I'm just playing with this on one site to check for possible problems.
I had a problem enabling gzip compression on one of my sites because the server does not have mod_gzip or mod_deflate on it. I put this in the top of each php page instead: