Hi Please View Below Code :
\\n\";
for( $i = 0 ; $i < 10 ; $i++ )
{
echo \"$i
\\n\";
Try removing the call to ob_start() on your first line : there is no need for you to enable output buffering -- and it probably causes troubles, here.
I've tested your code :
ob_start() is called on the first line, I only see the output when the script finishes, after 10 secondsob_start(), then, I see one line of output every second, as soon as it's displayed on the standard output.