A Simple Way to Save Bandwidth in PHP

If you were ever looking for a quick and sexy way to save bandwidth on your PHP-based porn high traffic site, all you have to do is add these two lines to the beginning of your PHP scripts:

@ini_set('zlib.output_compression_level', 1);

This will automatically tell the server to compress the PHP page before sending it to the browser. However, sometimes this can causes excess load and a decrease in the speed of your website, but it’s hardly noticable.

Be Sociable, Share!

Leave a Reply

Your email address will not be published. Required fields are marked *