Today I am sharing the most effective and usefull trick to save server bandwidth.
This trick is useful for who are paying for their server bandwidth.
Put below code in your .htaccess and done.
All it does is enables PHP’s built-in transparent zlib compression.
<ifModule mod_php4.c>
php_value zlib.output_compression 16386
</ifModule>
This will half your bandwidth usage in one stroke, more than that,
In fact. Of course it only works with data being output by the PHP module, but if you design your pages with this in mind,
you can use php echo statements, or better yet, php “includes” for your plain html output and just compress everything!
Remember, if you run phpsuexec, you’ll need to put php directives in a local php.ini file, not .htaccess.
No comments:
Post a Comment