in reply to Sending html content to the browser as the script runs

This might not be the answer you're looking for, but it's one way to accomplish the task: use AJAX to print html1, then call the long_process with a JavaScript function that prints html2 as its onComplete action, possibly even replacing html1 if desired.
  • Comment on Re: Sending html content to the browser as the script runs