Is there a way to have an ajax script make updates to a html element while the PHP script is being parsed and not only when it has completed? I.e.:
PHP:
<?PHP
echo 'stage 1';
sleep(3);
echo 'stage 2';
sleep(3);
echo 'Finished';
?>
What I would hope to see happen to the html element is that first it says 'stage 1', then 3 seconds later, 'stage 2' etc.
Would flushing the OB achieve what I want or is there a better way of doing this?