<?xml version="1.0" encoding="UTF-8"?><rss
version="2.0"
xmlns:content="http://purl.org/rss/1.0/modules/content/"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:atom="http://www.w3.org/2005/Atom"
xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
> <channel><title>Comments on: Adding GZIP Compression To Your Site Via .htaccess</title> <atom:link href="http://www.jhuskisson.com/articles/adding-gzip-compression-to-your-site-via-htaccess/feed" rel="self" type="application/rss+xml" /><link>http://www.jhuskisson.com/articles/adding-gzip-compression-to-your-site-via-htaccess</link> <description>Nottingham UK PHP, Magento, Wordpress freelance developer</description> <lastBuildDate>Sun, 19 Feb 2012 11:57:19 +0000</lastBuildDate> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3.1</generator> <item><title>By: Swapnil Sarwe</title><link>http://www.jhuskisson.com/articles/adding-gzip-compression-to-your-site-via-htaccess/comment-page-1#comment-71026</link> <dc:creator>Swapnil Sarwe</dc:creator> <pubDate>Wed, 15 Feb 2012 20:20:34 +0000</pubDate> <guid
isPermaLink="false">http://www.twod.co.uk/2005/04/17/adding-gzip-compression-to-your-site-via-htaccess/#comment-71026</guid> <description>I am getting this error on my server - since some setting might have disable to avoid server load:
Invalid command &#039;php_value&#039;, perhaps misspelled or defined by a module not included in the server configuration
just wanted to know is there any other way I can handle the output handler</description> <content:encoded><![CDATA[<p>I am getting this error on my server &#8211; since some setting might have disable to avoid server load:<br
/> Invalid command &#8216;php_value&#8217;, perhaps misspelled or defined by a module not included in the server configuration</p><p>just wanted to know is there any other way I can handle the output handler</p> ]]></content:encoded> </item> <item><title>By: Ashley</title><link>http://www.jhuskisson.com/articles/adding-gzip-compression-to-your-site-via-htaccess/comment-page-1#comment-69629</link> <dc:creator>Ashley</dc:creator> <pubDate>Fri, 16 Dec 2011 18:42:23 +0000</pubDate> <guid
isPermaLink="false">http://www.twod.co.uk/2005/04/17/adding-gzip-compression-to-your-site-via-htaccess/#comment-69629</guid> <description>Dude, this rocks.</description> <content:encoded><![CDATA[<p>Dude, this rocks.</p> ]]></content:encoded> </item> <item><title>By: Martin</title><link>http://www.jhuskisson.com/articles/adding-gzip-compression-to-your-site-via-htaccess/comment-page-1#comment-69601</link> <dc:creator>Martin</dc:creator> <pubDate>Tue, 08 Nov 2011 20:18:30 +0000</pubDate> <guid
isPermaLink="false">http://www.twod.co.uk/2005/04/17/adding-gzip-compression-to-your-site-via-htaccess/#comment-69601</guid> <description>is there any simple way to enable Gzip on HTML files too???</description> <content:encoded><![CDATA[<p>is there any simple way to enable Gzip on HTML files too???</p> ]]></content:encoded> </item> <item><title>By: Shu</title><link>http://www.jhuskisson.com/articles/adding-gzip-compression-to-your-site-via-htaccess/comment-page-1#comment-69346</link> <dc:creator>Shu</dc:creator> <pubDate>Sat, 08 Oct 2011 20:42:49 +0000</pubDate> <guid
isPermaLink="false">http://www.twod.co.uk/2005/04/17/adding-gzip-compression-to-your-site-via-htaccess/#comment-69346</guid> <description>Thanks for this tip!)
Installed a gzip plug-in on one of my WP sites - it now 3 times less bandwidth. Wow )
Why then gzip is not a standard feature? Because of the higher server CPU load?</description> <content:encoded><![CDATA[<p>Thanks for this tip!)<br
/> Installed a gzip plug-in on one of my WP sites &#8211; it now 3 times less bandwidth. Wow )</p><p>Why then gzip is not a standard feature? Because of the higher server CPU load?</p> ]]></content:encoded> </item> <item><title>By: Otto</title><link>http://www.jhuskisson.com/articles/adding-gzip-compression-to-your-site-via-htaccess/comment-page-1#comment-69306</link> <dc:creator>Otto</dc:creator> <pubDate>Wed, 05 Oct 2011 10:37:58 +0000</pubDate> <guid
isPermaLink="false">http://www.twod.co.uk/2005/04/17/adding-gzip-compression-to-your-site-via-htaccess/#comment-69306</guid> <description>Great tip, I will add it to my htaccess. I have heard it before but don´t know how to make these changes and integrate the GZIP Compression. Awesome! Thanks! :)</description> <content:encoded><![CDATA[<p>Great tip, I will add it to my htaccess. I have heard it before but don´t know how to make these changes and integrate the GZIP Compression. Awesome! Thanks! :)</p> ]]></content:encoded> </item> <item><title>By: Suhas</title><link>http://www.jhuskisson.com/articles/adding-gzip-compression-to-your-site-via-htaccess/comment-page-1#comment-69029</link> <dc:creator>Suhas</dc:creator> <pubDate>Wed, 07 Sep 2011 07:36:12 +0000</pubDate> <guid
isPermaLink="false">http://www.twod.co.uk/2005/04/17/adding-gzip-compression-to-your-site-via-htaccess/#comment-69029</guid> <description>Hi,
Great Tip!!
I have added the &lt;strong&gt;php_value output_handler ob_gzhandler&lt;/strong&gt; in my .htaccess file, it increases the performance but the garbage content was displaying at user front.
Can you please let me know, if I missed something..
Thanks in advance!</description> <content:encoded><![CDATA[<p>Hi,<br
/> Great Tip!!</p><p>I have added the <strong>php_value output_handler ob_gzhandler</strong> in my .htaccess file, it increases the performance but the garbage content was displaying at user front.</p><p>Can you please let me know, if I missed something..</p><p>Thanks in advance!</p> ]]></content:encoded> </item> <item><title>By: Adam Paterson</title><link>http://www.jhuskisson.com/articles/adding-gzip-compression-to-your-site-via-htaccess/comment-page-1#comment-68924</link> <dc:creator>Adam Paterson</dc:creator> <pubDate>Mon, 14 Feb 2011 08:38:49 +0000</pubDate> <guid
isPermaLink="false">http://www.twod.co.uk/2005/04/17/adding-gzip-compression-to-your-site-via-htaccess/#comment-68924</guid> <description>I had no idea you could use .htaccess enable GZIP!</description> <content:encoded><![CDATA[<p>I had no idea you could use .htaccess enable GZIP!</p> ]]></content:encoded> </item> <item><title>By: Justin Butcher</title><link>http://www.jhuskisson.com/articles/adding-gzip-compression-to-your-site-via-htaccess/comment-page-1#comment-68902</link> <dc:creator>Justin Butcher</dc:creator> <pubDate>Thu, 13 Jan 2011 03:33:01 +0000</pubDate> <guid
isPermaLink="false">http://www.twod.co.uk/2005/04/17/adding-gzip-compression-to-your-site-via-htaccess/#comment-68902</guid> <description>I&#039;ve actually done this. It&#039;s easy to implement and increases site speed no end. Great tip!</description> <content:encoded><![CDATA[<p>I&#8217;ve actually done this. It&#8217;s easy to implement and increases site speed no end. Great tip!</p> ]]></content:encoded> </item> <item><title>By: francis</title><link>http://www.jhuskisson.com/articles/adding-gzip-compression-to-your-site-via-htaccess/comment-page-1#comment-68701</link> <dc:creator>francis</dc:creator> <pubDate>Tue, 24 Aug 2010 14:42:55 +0000</pubDate> <guid
isPermaLink="false">http://www.twod.co.uk/2005/04/17/adding-gzip-compression-to-your-site-via-htaccess/#comment-68701</guid> <description>I added function to some scripts the other day and got error on some pages:
&quot;content encoding error&quot;
I found out that it will generate error if page is including:
Any workaround this issue? Unsure if this line is safe to remove..
Other pages without the UTF-8 worked fine.
Maybe I should use ob_start(“ob_gzhandler”); just for html ?</description> <content:encoded><![CDATA[<p>I added function to some scripts the other day and got error on some pages:</p><p>&#8220;content encoding error&#8221;<br
/> I found out that it will generate error if page is including:</p><p>Any workaround this issue? Unsure if this line is safe to remove..</p><p>Other pages without the UTF-8 worked fine.</p><p>Maybe I should use ob_start(“ob_gzhandler”); just for html ?</p> ]]></content:encoded> </item> <item><title>By: chat</title><link>http://www.jhuskisson.com/articles/adding-gzip-compression-to-your-site-via-htaccess/comment-page-1#comment-68694</link> <dc:creator>chat</dc:creator> <pubDate>Thu, 19 Aug 2010 14:38:51 +0000</pubDate> <guid
isPermaLink="false">http://www.twod.co.uk/2005/04/17/adding-gzip-compression-to-your-site-via-htaccess/#comment-68694</guid> <description>does it work with any script ??</description> <content:encoded><![CDATA[<p>does it work with any script ??</p> ]]></content:encoded> </item> <item><title>By: Kompres Website untuk Mempercepat Loading &#124; Ddery [dot] com</title><link>http://www.jhuskisson.com/articles/adding-gzip-compression-to-your-site-via-htaccess/comment-page-1#comment-68633</link> <dc:creator>Kompres Website untuk Mempercepat Loading &#124; Ddery [dot] com</dc:creator> <pubDate>Wed, 02 Jun 2010 05:03:56 +0000</pubDate> <guid
isPermaLink="false">http://www.twod.co.uk/2005/04/17/adding-gzip-compression-to-your-site-via-htaccess/#comment-68633</guid> <description>[...] jhuskisson.com us2.php.net    Blogging, Coding, PHP, Tips &amp; [...]</description> <content:encoded><![CDATA[<p>[...] jhuskisson.com us2.php.net    Blogging, Coding, PHP, Tips &#038; [...]</p> ]]></content:encoded> </item> <item><title>By: Robert M.</title><link>http://www.jhuskisson.com/articles/adding-gzip-compression-to-your-site-via-htaccess/comment-page-1#comment-67392</link> <dc:creator>Robert M.</dc:creator> <pubDate>Thu, 22 Apr 2010 06:05:48 +0000</pubDate> <guid
isPermaLink="false">http://www.twod.co.uk/2005/04/17/adding-gzip-compression-to-your-site-via-htaccess/#comment-67392</guid> <description>Which .htaccess would i put this in?  In my wordpress theme folder or in the html root folder?</description> <content:encoded><![CDATA[<p>Which .htaccess would i put this in?  In my wordpress theme folder or in the html root folder?</p> ]]></content:encoded> </item> <item><title>By: Tom G</title><link>http://www.jhuskisson.com/articles/adding-gzip-compression-to-your-site-via-htaccess/comment-page-1#comment-67201</link> <dc:creator>Tom G</dc:creator> <pubDate>Sat, 03 Apr 2010 00:29:35 +0000</pubDate> <guid
isPermaLink="false">http://www.twod.co.uk/2005/04/17/adding-gzip-compression-to-your-site-via-htaccess/#comment-67201</guid> <description>I use it at the top of all PHP pages so that they can go out each as compressed so that the browser wont have to wait until entire thing compresses. It saves a lot of bandwidth. I don&#039;t think this way compresses the CSS though, only the PHP/HTML.</description> <content:encoded><![CDATA[<p>I use it at the top of all PHP pages so that they can go out each as compressed so that the browser wont have to wait until entire thing compresses. It saves a lot of bandwidth. I don&#8217;t think this way compresses the CSS though, only the PHP/HTML.</p> ]]></content:encoded> </item> <item><title>By: Jamal Panhwar</title><link>http://www.jhuskisson.com/articles/adding-gzip-compression-to-your-site-via-htaccess/comment-page-1#comment-67181</link> <dc:creator>Jamal Panhwar</dc:creator> <pubDate>Tue, 16 Mar 2010 17:10:29 +0000</pubDate> <guid
isPermaLink="false">http://www.twod.co.uk/2005/04/17/adding-gzip-compression-to-your-site-via-htaccess/#comment-67181</guid> <description>Does this work on .html &amp; .shtml pages aslo?</description> <content:encoded><![CDATA[<p>Does this work on .html &amp; .shtml pages aslo?</p> ]]></content:encoded> </item> <item><title>By: Jesse Donat</title><link>http://www.jhuskisson.com/articles/adding-gzip-compression-to-your-site-via-htaccess/comment-page-1#comment-67166</link> <dc:creator>Jesse Donat</dc:creator> <pubDate>Tue, 09 Mar 2010 22:19:03 +0000</pubDate> <guid
isPermaLink="false">http://www.twod.co.uk/2005/04/17/adding-gzip-compression-to-your-site-via-htaccess/#comment-67166</guid> <description>&lt;cite&gt;Once you originally implement this, yes, you will notice changes in your processors activity. But after a day or two you’ll soon see the processor levels lower.&lt;/cite&gt;
This is wholly incorrect.  This method will compress your code, not cached in any way, every time a page is executed, output buffering the entire thing.
Lets go over the process so we understand.
- The output buffer begins storing output.
- Your sites code executes.
--- Anything your code would &quot;echo&quot; to the user is sent to the output buffer instead
- Your code completes
- the output buffer containing &lt;i&gt;the full content of your site&lt;/i&gt; is gziped
--- Gzip cannot execute on a partial document and must execute on the full completed html document
- the final gzip result is sent to the user, once all PHP has completed
Therefore the end user will not receive nor have displayed a single line of HTML until they receive the entire compressed document, at which point it can be uncompressed.
This can actually create the impression that the page is loading &lt;strong&gt;slower&lt;/strong&gt; because the browser will normally begin to render content as PHP flushes pieces of HTML out to the user, whereas now the user will receive it all at once, after PHP is entirely done.
I have found in my testing on Oasisband.net that PHPs delay compressing my HTML is greater than the delay of the user downloading it uncompressed when on a relatively fast connection.
Lastly ob_gz_handler to my understanding is more or less deprecated for &lt;a href=&quot;http://us2.php.net/manual/en/zlib.configuration.php#ini.zlib.output-compression&quot; rel=&quot;nofollow&quot;&gt;Zlib Output Compression&lt;/a&gt;.</description> <content:encoded><![CDATA[<p><cite>Once you originally implement this, yes, you will notice changes in your processors activity. But after a day or two you’ll soon see the processor levels lower.</cite></p><p>This is wholly incorrect.  This method will compress your code, not cached in any way, every time a page is executed, output buffering the entire thing.</p><p>Lets go over the process so we understand.</p><p>- The output buffer begins storing output.<br
/> - Your sites code executes.<br
/> &#8212; Anything your code would &#8220;echo&#8221; to the user is sent to the output buffer instead<br
/> - Your code completes<br
/> - the output buffer containing <i>the full content of your site</i> is gziped<br
/> &#8212; Gzip cannot execute on a partial document and must execute on the full completed html document<br
/> - the final gzip result is sent to the user, once all PHP has completed</p><p>Therefore the end user will not receive nor have displayed a single line of HTML until they receive the entire compressed document, at which point it can be uncompressed.<br
/> This can actually create the impression that the page is loading <strong>slower</strong> because the browser will normally begin to render content as PHP flushes pieces of HTML out to the user, whereas now the user will receive it all at once, after PHP is entirely done.</p><p>I have found in my testing on Oasisband.net that PHPs delay compressing my HTML is greater than the delay of the user downloading it uncompressed when on a relatively fast connection.</p><p>Lastly ob_gz_handler to my understanding is more or less deprecated for <a
href="http://us2.php.net/manual/en/zlib.configuration.php#ini.zlib.output-compression" rel="nofollow">Zlib Output Compression</a>.</p> ]]></content:encoded> </item> <item><title>By: Jamie Huskisson</title><link>http://www.jhuskisson.com/articles/adding-gzip-compression-to-your-site-via-htaccess/comment-page-1#comment-67145</link> <dc:creator>Jamie Huskisson</dc:creator> <pubDate>Tue, 23 Feb 2010 09:17:58 +0000</pubDate> <guid
isPermaLink="false">http://www.twod.co.uk/2005/04/17/adding-gzip-compression-to-your-site-via-htaccess/#comment-67145</guid> <description>Kiran - it sounds like your server doesn&#039;t have GZIP enabled. You&#039;ll need to contact your host in order to do this.</description> <content:encoded><![CDATA[<p>Kiran &#8211; it sounds like your server doesn&#8217;t have GZIP enabled. You&#8217;ll need to contact your host in order to do this.</p> ]]></content:encoded> </item> <item><title>By: Kiran</title><link>http://www.jhuskisson.com/articles/adding-gzip-compression-to-your-site-via-htaccess/comment-page-1#comment-67144</link> <dc:creator>Kiran</dc:creator> <pubDate>Tue, 23 Feb 2010 06:39:45 +0000</pubDate> <guid
isPermaLink="false">http://www.twod.co.uk/2005/04/17/adding-gzip-compression-to-your-site-via-htaccess/#comment-67144</guid> <description>Hi,
i have added  &lt;b&gt;php_value output_handler ob_gzhandler&lt;/b&gt; to compress the files in .htaccess file but am getting the following error:
Error 500 - Internal server error
An internal server error has occured!
Please try again later.
Can anybody help me wats the right way to do this.
Thanks in Advance,
Kiran kumar</description> <content:encoded><![CDATA[<p>Hi,<br
/> i have added <b>php_value output_handler ob_gzhandler</b> to compress the files in .htaccess file but am getting the following error:<br
/> Error 500 &#8211; Internal server error</p><p>An internal server error has occured!<br
/> Please try again later.</p><p>Can anybody help me wats the right way to do this.</p><p>Thanks in Advance,<br
/> Kiran kumar</p> ]]></content:encoded> </item> <item><title>By: chris</title><link>http://www.jhuskisson.com/articles/adding-gzip-compression-to-your-site-via-htaccess/comment-page-1#comment-67140</link> <dc:creator>chris</dc:creator> <pubDate>Sun, 21 Feb 2010 18:45:52 +0000</pubDate> <guid
isPermaLink="false">http://www.twod.co.uk/2005/04/17/adding-gzip-compression-to-your-site-via-htaccess/#comment-67140</guid> <description>oh that rules - thank you!!</description> <content:encoded><![CDATA[<p>oh that rules &#8211; thank you!!</p> ]]></content:encoded> </item> <item><title>By: Mi</title><link>http://www.jhuskisson.com/articles/adding-gzip-compression-to-your-site-via-htaccess/comment-page-1#comment-67099</link> <dc:creator>Mi</dc:creator> <pubDate>Thu, 21 Jan 2010 14:27:47 +0000</pubDate> <guid
isPermaLink="false">http://www.twod.co.uk/2005/04/17/adding-gzip-compression-to-your-site-via-htaccess/#comment-67099</guid> <description>Thanks for the great tip! It worked on one of my ISPs. On the other ISP it didn&#039;t. I will need to ask the service hotline why it doesn&#039;t work there.
Anyway, great article!</description> <content:encoded><![CDATA[<p>Thanks for the great tip! It worked on one of my ISPs. On the other ISP it didn&#8217;t. I will need to ask the service hotline why it doesn&#8217;t work there.<br
/> Anyway, great article!</p> ]]></content:encoded> </item> <item><title>By: Dave Ashworth</title><link>http://www.jhuskisson.com/articles/adding-gzip-compression-to-your-site-via-htaccess/comment-page-1#comment-67081</link> <dc:creator>Dave Ashworth</dc:creator> <pubDate>Wed, 13 Jan 2010 11:50:22 +0000</pubDate> <guid
isPermaLink="false">http://www.twod.co.uk/2005/04/17/adding-gzip-compression-to-your-site-via-htaccess/#comment-67081</guid> <description>This is great, though I have come across one issue with it.
I added to a client site and everything was fine and noticeably sped up, however, the application within a sub folder displayed ascii &quot;nonsense&quot; - like if you were to open say a SWF file in word or notepad!
Anyone know why this would be and how to overcome it?</description> <content:encoded><![CDATA[<p>This is great, though I have come across one issue with it.</p><p>I added to a client site and everything was fine and noticeably sped up, however, the application within a sub folder displayed ascii &#8220;nonsense&#8221; &#8211; like if you were to open say a SWF file in word or notepad!</p><p>Anyone know why this would be and how to overcome it?</p> ]]></content:encoded> </item> <item><title>By: trecords</title><link>http://www.jhuskisson.com/articles/adding-gzip-compression-to-your-site-via-htaccess/comment-page-1#comment-67054</link> <dc:creator>trecords</dc:creator> <pubDate>Thu, 10 Dec 2009 16:36:56 +0000</pubDate> <guid
isPermaLink="false">http://www.twod.co.uk/2005/04/17/adding-gzip-compression-to-your-site-via-htaccess/#comment-67054</guid> <description>Hello,
Very good idea, can i also compress CSS with adding this code:
&lt;code&gt;css_value output_handler ob_gzhandler&lt;/code&gt;
Also i use wpmu, do i need to add the header code to all templates?
Thank you very much</description> <content:encoded><![CDATA[<p>Hello,<br
/> Very good idea, can i also compress CSS with adding this code:<br
/> <code>css_value output_handler ob_gzhandler</code></p><p>Also i use wpmu, do i need to add the header code to all templates?<br
/> Thank you very much</p> ]]></content:encoded> </item> <item><title>By: Matthew</title><link>http://www.jhuskisson.com/articles/adding-gzip-compression-to-your-site-via-htaccess/comment-page-1#comment-67052</link> <dc:creator>Matthew</dc:creator> <pubDate>Wed, 09 Dec 2009 20:21:31 +0000</pubDate> <guid
isPermaLink="false">http://www.twod.co.uk/2005/04/17/adding-gzip-compression-to-your-site-via-htaccess/#comment-67052</guid> <description>I had great luck with this! For me, to implement it server wide, I put it in the httpd.conf file on my linux server. Then, rebooted apache and BAM! Every site I host has it. :)
Thanks!</description> <content:encoded><![CDATA[<p>I had great luck with this! For me, to implement it server wide, I put it in the httpd.conf file on my linux server. Then, rebooted apache and BAM! Every site I host has it. :)</p><p>Thanks!</p> ]]></content:encoded> </item> <item><title>By: Is Gzip turned on? - x10Hosting Community</title><link>http://www.jhuskisson.com/articles/adding-gzip-compression-to-your-site-via-htaccess/comment-page-1#comment-66980</link> <dc:creator>Is Gzip turned on? - x10Hosting Community</dc:creator> <pubDate>Wed, 14 Oct 2009 07:15:25 +0000</pubDate> <guid
isPermaLink="false">http://www.twod.co.uk/2005/04/17/adding-gzip-compression-to-your-site-via-htaccess/#comment-66980</guid> <description>[...] Is Gzip turned on?     As far as I know, yes.      __________________ Regards, Sharky B.A. (Hons) AVATAR (JPG/PNG) &#124; IRC &#124; PM &#124; MY POSTS &#124; MY [...]</description> <content:encoded><![CDATA[<p>[...] Is Gzip turned on?     As far as I know, yes.      __________________ Regards, Sharky B.A. (Hons) AVATAR (JPG/PNG) | IRC | PM | MY POSTS | MY [...]</p> ]]></content:encoded> </item> <item><title>By: Paul</title><link>http://www.jhuskisson.com/articles/adding-gzip-compression-to-your-site-via-htaccess/comment-page-1#comment-66691</link> <dc:creator>Paul</dc:creator> <pubDate>Sun, 26 Jul 2009 03:56:55 +0000</pubDate> <guid
isPermaLink="false">http://www.twod.co.uk/2005/04/17/adding-gzip-compression-to-your-site-via-htaccess/#comment-66691</guid> <description>Vielen Dank für die Informationen =)</description> <content:encoded><![CDATA[<p>Vielen Dank für die Informationen =)</p> ]]></content:encoded> </item> <item><title>By: DFL</title><link>http://www.jhuskisson.com/articles/adding-gzip-compression-to-your-site-via-htaccess/comment-page-1#comment-51910</link> <dc:creator>DFL</dc:creator> <pubDate>Sat, 10 Jan 2009 03:19:24 +0000</pubDate> <guid
isPermaLink="false">http://www.twod.co.uk/2005/04/17/adding-gzip-compression-to-your-site-via-htaccess/#comment-51910</guid> <description>You can also do it in a php.ini file (assuming gzip is enabled) by adding only one line to php.ini:
output_handler = ob_gzhandler;
That&#039;s it.
Also, compressing in a PHP file, the:
ob_end_flush();
line is not necessary for it to function properly.  PHP will flush it automatically.  To simplify, all you need is:
ob_start(&#039;ob_gzhandler&#039;);
At the top of a PHP file.  You could also prepend a php file to other php files using htaccess.  But if you could do that, you might as well use the htaccess example given in this post.</description> <content:encoded><![CDATA[<p>You can also do it in a php.ini file (assuming gzip is enabled) by adding only one line to php.ini:</p><p>output_handler = ob_gzhandler;</p><p>That&#8217;s it.</p><p>Also, compressing in a PHP file, the:</p><p>ob_end_flush();</p><p>line is not necessary for it to function properly.  PHP will flush it automatically.  To simplify, all you need is:</p><p>ob_start(&#8216;ob_gzhandler&#8217;);</p><p>At the top of a PHP file.  You could also prepend a php file to other php files using htaccess.  But if you could do that, you might as well use the htaccess example given in this post.</p> ]]></content:encoded> </item> </channel> </rss>
