Speed Up Your Loading Time without cutting down scripts!
PHP Code
<?
ini_set('zlib.output_compression_level', 5);
#set the ini file with the compression level of your choice.
#where 5 is you can change the compression level, it can be as high as 9 and as low as 0.
#but be careful not to have to much compression, it can result in slow page loads
ob_start("ob_gzhandler");
#now we will use output buffering to run the compression, make sure you put this at the very, very top of the pages you want compressed
?>
By the way, I use level 7 or 8 in compression, seems to work best for my site, one page used to take 16 seconds on my site to load with cashed clear, and ran the compression with cashed clear and it took about 5 seconds on level 8.
Hope you learnt a little and if everybody did this, we could make the internet a nice and fast loading, many forum systems compress their files, like phpbb and sm forums, if you want to do this with your forums and you find that it isn't running the compression, there should be an option in the admin panel, otherwise you can try adding it yourself.
~~~~~Chris M