PHP sleep() function
<p>When I am running following php script which uses sleep() method to execute code after some interval. When I am running the script it gives the outputs all at once when it completes the loop. I need that it display output after each execution of loop. </p>

<pre><code>&lt;?php
$count=0;
$n=10;

set_time_limit(2000);

while($count&lt;$n)
{
    sleep(30);
    echo time();
    echo "Timer Run....".$count."&lt;br&gt;";
    $count++;
}
?&gt;
</code></pre>
