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.


-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to