Re: Return to browser and keep running!
| From: | Marek Kilimajer | Date: | Wed, 15 Oct 2003 14:04:24 +0000 |
| Subject: | Re: Return to browser and keep running! | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-166210@lists.php.net to get a copy of this message | ||
Use register_shutdown_function()
Manuel Vázquez Acosta wrote:
Hi all: I need to know if there is a way to send the output buffer to the browser, disconnect from it but keep running a task the user doesn't need to realize that is happening and that may take a few minutes to be complete. Something like: <?php /// PREPARE OUTPUT... flush(); disconnect_from_browser(); /// Figure out if its required an optimization pass to /// the DB and make it. This could take a long time before ?> Manu.