in reply to Re: Printing Like Terminal Does
in thread Printing Like Terminal Does

My question is about the same... Show information before end of script Problem if you do a serie of pages, is that assuming you have a first "please wait" page calling a second one, longer to execute, it will show a white page until this second one executes. Andrei

Edit: g0n - Turned 'http' link into monklink.

Replies are listed 'Best First'.
Re^3: Printing Like Terminal Does
by Roy Johnson (Monsignor) on Sep 15, 2005 at 14:57 UTC
    You would have two things going on: a long-running process that does not communicate with the browser, and an auto-updating process spawned by the long-running one.

    The long-running process would write a status file periodically, and the fast-updating page would check that status file and relay the information to the browser, reloading regularly. When the status file indicate the process was done, then the relaying process would send the final results in a page that doesn't auto-reload.


    Caution: Contents may have been coded under pressure.