SEO Tips - SEO Blog - Internet Marketing - Search Engine Optimization


  • How to Enable Gzip Compression with PHP
    By on April 19th, 2009 | 13 Comments13 Comments Comments
    How to Enable Gzip Compression with PHP
    How to enable gzip compression with Php. Enabling Gzip Compression In many forums and on many webpages it has been widely proclaimed that to enable gzip compression using php is as easy as adding a single line of code at the beginning of each page. This is not false, however it is not the best way of doing it. Before continuing, here’s the code. It takes advantage of Php’s buffered output and buffers all output of the script until the Php engine has completed, and then runs all the output through a special function that gzip compresses it before sending it on to the browser. ...