Re: Forking and BG processes in PHP

From: Date: Tue, 06 Nov 2001 10:59:27 +0000
Subject: Re: Forking and BG processes in PHP
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-73570@lists.php.net to get a copy of this message
On Tuesday 06 November 2001 11:15, Massimiliano Bariola wrote: Hi, Use register_shutdown_fucntion(). Connection is already closed when the registered function is running, so the user can do what he/she wants. I use this approach to generate pages that takes a lot time into a cache, and use that cache on the next request, and works nice for me. Arpi > Hi everybody, > > I wasn't able to find a good answer in the archives, so I > thought I would ask here. > > This is the scenario: An user can request a time-expensive > DB processing via a PHP page. I'd like to arrange for > having a confirmation page telling the user that the > request is being processed, and then redirecting him/doing > whatever else/etc. Meanwhile, there should be a process > actually doing the DB work. When it's finished, it should send a > mail to the requester including an URL for the download of the > results of the operation.

« previous php.general (#73570) next »