friendly way to echo slow loading data
<p>I have the following web php code:</p>

<pre><code>while ($row = mysql_fetch_array($results, MYSQL_NUM))
{
printf("&lt;p&gt;ID: %s&lt;/p&gt;", $row[0]);
echo exec ("php analysis.php " .escapeshellcmd($row[0]));
}
</code></pre>

<p>For a set of 4k users, the following code takes 15 minutes to execute with the results being displayed in increments of of ~1k users.</p>

<p>I want the results displayed at around the speed that the code is going so that anybody using the page is confused as to weather or not the code works. Is there some way to force the browser to display the data it was sent?</p>

<p>edit:
<code>Flush</code> is not producing noticeably different output.<br>
edit:
My problem remains unresolved? Is there some client server model that can be implemented in JavaScript to facilitate this? Can Javascript open a socket and interrupt on socket data? Maybe using flash(which I know can use sockets...)</p>
