I want to display live in the browsers

for($i=0;$i<100000;$i++)
{
//here would be something like echo ($i)
}

but the problem is that flush() will not work because it flushes whatever is in memory.In this problem visitor will see value of $i in the box changing with high speed.

I think there will be some javascript usage in this problem.

Your help is highly appreciated