Showing output while parsing
Posted: Sat Nov 08, 2003 2:16 pm
is it possible that u can send output to the browser while the php engine is parsing the code? like:
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??
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??