Code: Select all
<?php
echo "Initializing";
//do a lot of stuff, like loops and everything, which takes long time
echo "Done";
?>Initializing has to be shown first, then we the process finishes "Done" is sent to the browser, meaning the script has ended at that time.
what are the functions to do this? is it output something? can this be done? if so, a little example or tutorial on how to do this will be appreciated
is it flush() or something like that??