Re: Return to browser and keep running!

From: Date: Wed, 15 Oct 2003 14:30:38 +0000
Subject: Re: Return to browser and keep running!
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-166212@lists.php.net to get a copy of this message
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.

« previous php.general (#166212) next »