I have a script, that might take 30 seconds to finish. Instead of let people wait for 30 seconds, I'd like to show a kind of progress status when the PHP script is running.
Say in my script:
for($i=0; $i<100; $i++)
echo "Running at # $i<br>";
What I want to achieve is instead of showing all these lines "Running at ..." all at once after the loop finishes, I want it to show one by one...
How do I do this? What HTML tags/code should I use to reflect the progress of a running PHP script?
Thanks.