This code is a work in progress and should never be used in a production environment without extensive testing!
First, the page that is loaded into the browser, it uses jQuery to receive status updates from ‘getstatus.php’ script
Long Running Script
This is the long running script simulator
\n"); sleep(1); $i++; } fclose($fh); ?>
And getstatus.php, the script that returns data to be appended to div