Let's say i have a big script that takes up to 10 seconds to execute.
I'd like to send some part of the html file to the browser at the beginning of the script so that something is displayed (like a "be patient" sort of phrase, maybe an animated gif or something) and once the big part of the script is run send the "end" of the html file.
Can i do this in php ? Using output buffering functions ? Something else ?
Another case of long time process for which one could want some temporary data displayed until it's done is file uploading.
Is it possible to print something on the screen to make the user patient while the upload takes place (i think an exact load bar is impossible, but a simple gif ?) ?
Thanks for any ideas / experiences