I am working on a script that processes a LARGE file of data. Executing the script on the entire file can take several minutes. I would like to be able to provide the user with a running update on their browser display, updated every 20 seconds or so, until the script completes, so they know that SOMETHING is going on.
Is there any way to get PHP to do this without resorting to forcing the script to recall itself in order to redraw the whole screen?
I have tried the ob_start and flush() calls, but they didn't achieve any observable result. Is there any generally accepted way of updating the browser screen during a PHP script execution? Thanks!