I read this from another forum.. is this true and can someone explain more clearly how it's done?
I heard somewhere that by using php's ob(gz_handler); function (in php 4.0 above I think), makes your site go about 100% faster, because it compresses the HTML 10 times round before sending it to the user, making your pages much smaller...
Here's how to do it (or so I was told)...
first create a .htaccess file and into it insert the following:
code:
php_value auto_prepend_file /base/urlof/yoursite/gzip.php
I just called it gzip.php you can rename it...
Secondly, in gzip.php (or whatever you've called it), insert the following:
code:
<?phpob_start(ob_gzhandler);?>
That's it ! all you have to do now is insert this into your root directory on your site...
This should work, but I am not claiming that it does (in truth I have noticed a dramatic speed increase on my site), but has anyone else heard about this or know of any other ways this could be achieved ?
100% faster almost sounds unbelievable
Please post your comments !
Chris.