Is it possible to have PHP print in the while loop before it finishes processing?
<pre><code>for($x=0;$x&lt;100000;$x++) {
    echo "hello $x";
}
</code></pre>

<p>So, normally, it will finish processing everything first and then print everything at once. Is there a way to just keep printing the message as the command is sent, so that I'll see a new <code>hello $x</code> appended one by one or do I have to use jQuery/JavaScript? </p>

<p>Update:</p>

<p>I ask because I'm trying to run a long test script and have it show all the results 1 by 1 on the browser so I don't have to go check the logs and could just visually see the color coded results. I'm trying to make a similar effect to this: <a href="http://tools.css3.info/selectors-test/test.html" rel="nofollow">http://tools.css3.info/selectors-test/test.html</a> If anyone could provide a short sample of the jQuery (if it has to be done this way), I would appreciate it.</p>
