Read : > PHP's process control functions may do what you need.... > > http://us3.php.net/manual/en/ref.pcntl.php > >
Other alternative is to fork an external command with the exec or similar function, which would run another php script, in another php instance, in the background... make sure you redirect all in/out streams and add a & sign to the end of the command string, or else you script would hang waiting for child completion... On Wed, 2003-10-15 at 10:52, 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