<?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: ob_start(), ob_flush(), flush(), set_time_limit() &#8211; Give user feedback during execution</title>
	<atom:link href="http://www.joeyrivera.com/2008/ob_start-ob_flush-flush-set_time_limit-give-user-feedback-during-execution/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.joeyrivera.com/2008/ob_start-ob_flush-flush-set_time_limit-give-user-feedback-during-execution/</link>
	<description>Blogging about PHP, Actionscript, MySQL, and other interests.</description>
	<lastBuildDate>Sat, 04 Feb 2012 04:50:46 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: Joey</title>
		<link>http://www.joeyrivera.com/2008/ob_start-ob_flush-flush-set_time_limit-give-user-feedback-during-execution/comment-page-1/#comment-1154</link>
		<dc:creator>Joey</dc:creator>
		<pubDate>Fri, 20 May 2011 03:14:25 +0000</pubDate>
		<guid isPermaLink="false">http://www.joeyrivera.com/?p=238#comment-1154</guid>
		<description>Hey Johannes,

I have a process I built at work that publishes a course and creates hundreds to thousands of individual xml files from a db. This process can take up to 10 minutes to complete. All of this is happening sever side so ajax is not an option. Instead of showing a message to the user that read &quot;please wait&quot; with no signs of activity for 10 minutes, I display the different processes that are taking place using output buffers to let the user know that the process is working. As each page is published I display that on the screen, as each lesson is published, I display this on the screen with the total number of lessons left to give them an idea of how much progress is left. I personally don&#039;t see this as a hack and instead see this as a way to enhance my users experience.</description>
		<content:encoded><![CDATA[<p>Hey Johannes,</p>
<p>I have a process I built at work that publishes a course and creates hundreds to thousands of individual xml files from a db. This process can take up to 10 minutes to complete. All of this is happening sever side so ajax is not an option. Instead of showing a message to the user that read &#8220;please wait&#8221; with no signs of activity for 10 minutes, I display the different processes that are taking place using output buffers to let the user know that the process is working. As each page is published I display that on the screen, as each lesson is published, I display this on the screen with the total number of lessons left to give them an idea of how much progress is left. I personally don&#8217;t see this as a hack and instead see this as a way to enhance my users experience.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Johannes Reiners</title>
		<link>http://www.joeyrivera.com/2008/ob_start-ob_flush-flush-set_time_limit-give-user-feedback-during-execution/comment-page-1/#comment-1153</link>
		<dc:creator>Johannes Reiners</dc:creator>
		<pubDate>Thu, 19 May 2011 22:15:30 +0000</pubDate>
		<guid isPermaLink="false">http://www.joeyrivera.com/?p=238#comment-1153</guid>
		<description>As an addition: i would use ajax or at least a hidden iframe loading this stuff in the background rather than output it direct to the browser. It&#039;s much more userfriendly.
By the way: This sounds for me like an ugly workaround and it&#039;s surely not best practice doing it this way. I avoid such things like the plague and i try to take this into account when planning a website.</description>
		<content:encoded><![CDATA[<p>As an addition: i would use ajax or at least a hidden iframe loading this stuff in the background rather than output it direct to the browser. It&#8217;s much more userfriendly.<br />
By the way: This sounds for me like an ugly workaround and it&#8217;s surely not best practice doing it this way. I avoid such things like the plague and i try to take this into account when planning a website.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: PHP: eseguire l&#8217;output di una stringa durante l&#8217;esecuzione di uno script con ob_start(), ob_flush(), flush() &#171; TechWave</title>
		<link>http://www.joeyrivera.com/2008/ob_start-ob_flush-flush-set_time_limit-give-user-feedback-during-execution/comment-page-1/#comment-928</link>
		<dc:creator>PHP: eseguire l&#8217;output di una stringa durante l&#8217;esecuzione di uno script con ob_start(), ob_flush(), flush() &#171; TechWave</dc:creator>
		<pubDate>Mon, 10 Jan 2011 14:08:20 +0000</pubDate>
		<guid isPermaLink="false">http://www.joeyrivera.com/?p=238#comment-928</guid>
		<description>[...] Di seguito un esempio di codice per testare il funzionamento ricavato da un articolo del blog  joeyrivera.com [...]</description>
		<content:encoded><![CDATA[<p>[...] Di seguito un esempio di codice per testare il funzionamento ricavato da un articolo del blog  joeyrivera.com [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Best-of-the-Web 3 &#124; davblog: webdev and stuff</title>
		<link>http://www.joeyrivera.com/2008/ob_start-ob_flush-flush-set_time_limit-give-user-feedback-during-execution/comment-page-1/#comment-792</link>
		<dc:creator>Best-of-the-Web 3 &#124; davblog: webdev and stuff</dc:creator>
		<pubDate>Sun, 26 Dec 2010 20:18:46 +0000</pubDate>
		<guid isPermaLink="false">http://www.joeyrivera.com/?p=238#comment-792</guid>
		<description>[...] Give user feedback during execution &#8211; PHP&#8217;s Outputbuffering dazu verwenden, lang laufende Scripte &#8220;responsive&#8221; wirken zu lassen [...]</description>
		<content:encoded><![CDATA[<p>[...] Give user feedback during execution &#8211; PHP&#8217;s Outputbuffering dazu verwenden, lang laufende Scripte &#8220;responsive&#8221; wirken zu lassen [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Trixmasta</title>
		<link>http://www.joeyrivera.com/2008/ob_start-ob_flush-flush-set_time_limit-give-user-feedback-during-execution/comment-page-1/#comment-541</link>
		<dc:creator>Trixmasta</dc:creator>
		<pubDate>Thu, 04 Nov 2010 22:25:35 +0000</pubDate>
		<guid isPermaLink="false">http://www.joeyrivera.com/?p=238#comment-541</guid>
		<description>Ive been trying to figure this S**T out for hours!!!!!  I couldnt get the data to flush() properly this whole time!  And simply the str_pad fixed it!  

Thank you dude!   

Can someone explain why the str_pad works??</description>
		<content:encoded><![CDATA[<p>Ive been trying to figure this S**T out for hours!!!!!  I couldnt get the data to flush() properly this whole time!  And simply the str_pad fixed it!  </p>
<p>Thank you dude!   </p>
<p>Can someone explain why the str_pad works??</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Simple, Chrome compatible, PHP flush function &#124; woot.zapto.org</title>
		<link>http://www.joeyrivera.com/2008/ob_start-ob_flush-flush-set_time_limit-give-user-feedback-during-execution/comment-page-1/#comment-502</link>
		<dc:creator>Simple, Chrome compatible, PHP flush function &#124; woot.zapto.org</dc:creator>
		<pubDate>Thu, 12 Aug 2010 15:51:22 +0000</pubDate>
		<guid isPermaLink="false">http://www.joeyrivera.com/?p=238#comment-502</guid>
		<description>[...] applications. So whats the fix? After searching around for a solution, I stumbled upon this blog post on joeyrivera.com. His workaround uses the str_pad function to force Chrome to refresh the [...]</description>
		<content:encoded><![CDATA[<p>[...] applications. So whats the fix? After searching around for a solution, I stumbled upon this blog post on joeyrivera.com. His workaround uses the str_pad function to force Chrome to refresh the [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mike</title>
		<link>http://www.joeyrivera.com/2008/ob_start-ob_flush-flush-set_time_limit-give-user-feedback-during-execution/comment-page-1/#comment-501</link>
		<dc:creator>Mike</dc:creator>
		<pubDate>Thu, 12 Aug 2010 15:34:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.joeyrivera.com/?p=238#comment-501</guid>
		<description>Thank you for this tip</description>
		<content:encoded><![CDATA[<p>Thank you for this tip</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: the echothis blog &#187; Google Chrome doesn&#8217;t like to stream</title>
		<link>http://www.joeyrivera.com/2008/ob_start-ob_flush-flush-set_time_limit-give-user-feedback-during-execution/comment-page-1/#comment-498</link>
		<dc:creator>the echothis blog &#187; Google Chrome doesn&#8217;t like to stream</dc:creator>
		<pubDate>Tue, 10 Aug 2010 22:03:22 +0000</pubDate>
		<guid isPermaLink="false">http://www.joeyrivera.com/?p=238#comment-498</guid>
		<description>[...] sending actually matters as well (at least to Chrome and thus likely Safari).  E.g., a standard workaround is this: // start output buffer if &#040;ob_get_level&#040;&#041; == 0&#041; ob_start&#040;&#041;; [...]</description>
		<content:encoded><![CDATA[<p>[...] sending actually matters as well (at least to Chrome and thus likely Safari).  E.g., a standard workaround is this: // start output buffer if &#40;ob_get_level&#40;&#41; == 0&#41; ob_start&#40;&#41;; [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rolf</title>
		<link>http://www.joeyrivera.com/2008/ob_start-ob_flush-flush-set_time_limit-give-user-feedback-during-execution/comment-page-1/#comment-497</link>
		<dc:creator>Rolf</dc:creator>
		<pubDate>Tue, 10 Aug 2010 21:54:35 +0000</pubDate>
		<guid isPermaLink="false">http://www.joeyrivera.com/?p=238#comment-497</guid>
		<description>Great post!  What I discovered is that Chrome (and likely Safari) will only stream the buffer if you end the printed line with a , as you did in your example.  If you replace it with say a \n (newline), it no longer works.  That stuck me for awhile before I figured it out.</description>
		<content:encoded><![CDATA[<p>Great post!  What I discovered is that Chrome (and likely Safari) will only stream the buffer if you end the printed line with a , as you did in your example.  If you replace it with say a \n (newline), it no longer works.  That stuck me for awhile before I figured it out.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: &#187; ce qui a retenu mon attention cette semaine ! oxynel, blog communication - Agence de communication Montpellier</title>
		<link>http://www.joeyrivera.com/2008/ob_start-ob_flush-flush-set_time_limit-give-user-feedback-during-execution/comment-page-1/#comment-468</link>
		<dc:creator>&#187; ce qui a retenu mon attention cette semaine ! oxynel, blog communication - Agence de communication Montpellier</dc:creator>
		<pubDate>Fri, 19 Mar 2010 17:16:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.joeyrivera.com/?p=238#comment-468</guid>
		<description>[...] Pour mes développeurs ! sisi quand on a un set_time_limit en php on peut voir l&#8217;avancement d&amp;... [...]</description>
		<content:encoded><![CDATA[<p>[...] Pour mes développeurs ! sisi quand on a un set_time_limit en php on peut voir l&#8217;avancement d&amp;&#8230; [...]</p>
]]></content:encoded>
	</item>
</channel>
</rss>

