Question: My dynamic PHP-driven site is popular and is using a lot of bandwidth. What can I do to save that precious bandwidth?
Answer: Those of you who have to worry about bandwidth should really consider yourselves lucky. It means that your website has been more successful than the majority of others on the Web. Still, I sympathize a little with you, because bandwidth does cost money, and any sensible person will try to save money whenever possible.
With the combination of Apache and PHP, there is an easy way to cut your bandwidth usage nearly in half, and it’s very easy to do. I have not had a chance to test this, but according to corz.org, it only takes one .htaccess directive:
< ifmodule mod_php4.c>
php_value zlib.output_compression 16386
Save that in an .htaccess file, and you are good to go. There are some limitations, particularly if your PHP installation is less than normal. You can read about them on the aforementioned site. Happy savings!
Photo Source: Flickr