output as page goes along, not all at once
Posted: Mon Mar 01, 2004 2:24 pm
hmm
basically, i want to make my script send its output as it is printed, not all at once, once the whole page has been generated.
ie
i want the script to first print 1, then in 10 seconds time print 2, etc etc.
is this possible?
maybe it can be done wiht output buffering, but im not sure :s
hope somoene can help!
basically, i want to make my script send its output as it is printed, not all at once, once the whole page has been generated.
ie
Code: Select all
<?php
echo "1";
/// some stuff here which takes, say 10 seconds to compute
echo "2";
/// more stuff
echo "3";
// etc etc
?>is this possible?
maybe it can be done wiht output buffering, but im not sure :s
hope somoene can help!