<?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: How to use Output Buffering in PHP</title>
	<atom:link href="http://www.999tutorials.com/php/how-to-use-output-buffering-in-php/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.999tutorials.com/php/how-to-use-output-buffering-in-php/</link>
	<description>999Tutorials.com - Your Tutorial Spot</description>
	<lastBuildDate>Fri, 05 Mar 2010 07:35:22 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: admin</title>
		<link>http://www.999tutorials.com/php/how-to-use-output-buffering-in-php/comment-page-1/#comment-3268</link>
		<dc:creator>admin</dc:creator>
		<pubDate>Sat, 28 Nov 2009 14:22:28 +0000</pubDate>
		<guid isPermaLink="false">http://new.999tutorials.com/?p=6#comment-3268</guid>
		<description>Thanks for pointing it out Daft!
The strong tag came from our old template code, but it&#039;s removed now. And the function is called ourCallbackFunction on both places.</description>
		<content:encoded><![CDATA[<p>Thanks for pointing it out Daft!<br />
The strong tag came from our old template code, but it&#8217;s removed now. And the function is called ourCallbackFunction on both places.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: daft</title>
		<link>http://www.999tutorials.com/php/how-to-use-output-buffering-in-php/comment-page-1/#comment-3267</link>
		<dc:creator>daft</dc:creator>
		<pubDate>Sat, 28 Nov 2009 14:02:06 +0000</pubDate>
		<guid isPermaLink="false">http://new.999tutorials.com/?p=6#comment-3267</guid>
		<description>there&#039;s an error in your code exmaple :
it&#039;s not : &lt;strong&gt;ob_start&lt;/strong&gt;(&quot;ourCallbackFunction&quot;);

it&#039;s &quot;outCallbackFunction&quot;

and get rid of that strong tag</description>
		<content:encoded><![CDATA[<p>there&#8217;s an error in your code exmaple :<br />
it&#8217;s not : <strong>ob_start</strong>(&#8220;ourCallbackFunction&#8221;);</p>
<p>it&#8217;s &#8220;outCallbackFunction&#8221;</p>
<p>and get rid of that strong tag</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mwafi</title>
		<link>http://www.999tutorials.com/php/how-to-use-output-buffering-in-php/comment-page-1/#comment-1181</link>
		<dc:creator>mwafi</dc:creator>
		<pubDate>Tue, 11 Aug 2009 09:17:29 +0000</pubDate>
		<guid isPermaLink="false">http://new.999tutorials.com/?p=6#comment-1181</guid>
		<description>thanks :)</description>
		<content:encoded><![CDATA[<p>thanks <img src='http://www.999tutorials.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: admin</title>
		<link>http://www.999tutorials.com/php/how-to-use-output-buffering-in-php/comment-page-1/#comment-18</link>
		<dc:creator>admin</dc:creator>
		<pubDate>Wed, 06 May 2009 18:45:04 +0000</pubDate>
		<guid isPermaLink="false">http://new.999tutorials.com/?p=6#comment-18</guid>
		<description>Hi Manu,

You are correct. If you don&#039;t call ob_end_flush nothing will be displayed!

There are other ways than described in the example to use outputbuffering. A simpler way is to not use a callback function. Simply start the output buffer and then when you want to display the output run ob_end_flush().

If you want to catch the output in a variable use ob_get_contents() instead like this: $theOutput = ob_get_contents();
You can then echo $theOutput to display the output.

Catching the output in a variable can be a simple way to implement a cache system... Simply write the output to a file for later use. The first thing you do in your script is to controll if there is a cache file saved, then display that instead of going through the script.

We will try to make a tutorial about &quot;simple cache system with output buffering&quot; later if there is interest in that?

//Mattias</description>
		<content:encoded><![CDATA[<p>Hi Manu,</p>
<p>You are correct. If you don&#8217;t call ob_end_flush nothing will be displayed!</p>
<p>There are other ways than described in the example to use outputbuffering. A simpler way is to not use a callback function. Simply start the output buffer and then when you want to display the output run ob_end_flush().</p>
<p>If you want to catch the output in a variable use ob_get_contents() instead like this: $theOutput = ob_get_contents();<br />
You can then echo $theOutput to display the output.</p>
<p>Catching the output in a variable can be a simple way to implement a cache system&#8230; Simply write the output to a file for later use. The first thing you do in your script is to controll if there is a cache file saved, then display that instead of going through the script.</p>
<p>We will try to make a tutorial about &#8220;simple cache system with output buffering&#8221; later if there is interest in that?</p>
<p>//Mattias</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Manu Joseph</title>
		<link>http://www.999tutorials.com/php/how-to-use-output-buffering-in-php/comment-page-1/#comment-17</link>
		<dc:creator>Manu Joseph</dc:creator>
		<pubDate>Wed, 06 May 2009 15:12:50 +0000</pubDate>
		<guid isPermaLink="false">http://new.999tutorials.com/?p=6#comment-17</guid>
		<description>Hai Mr.Author(i didnt find ur name),

Any way this article give me some gud idea abt the usage of ob_start.But still i got another doubt that if we dont use ob_end_flush also the o/p will be displayed rit?then wats tis funcz use.</description>
		<content:encoded><![CDATA[<p>Hai Mr.Author(i didnt find ur name),</p>
<p>Any way this article give me some gud idea abt the usage of ob_start.But still i got another doubt that if we dont use ob_end_flush also the o/p will be displayed rit?then wats tis funcz use.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
