Re: Startinga shell process with a life of its own

From: Date: Tue, 11 Jul 2006 15:06:31 +0000
Subject: Re: Startinga shell process with a life of its own
References: 1 2 3 4  Groups: php.general 
Request: Send a blank email to php-general+get-239314@lists.php.net to get a copy of this message
Great approach! Slicker'n snot. I added one enhancement: The shell script writss progress info to the database which the trigger page displays on entry. Richard Lynch wrote:
I would recommend, however, that you re-structure things slightly so that the Architecture is more like this: User visits web page. Page generates a database record of what needs to be done. Page finished. CRON JOB: Look in task list of what needs doing, and do some of them. Make sure only one job is done at a time, or whatever race conditions are handled here. I've done projects both ways, and always end up frustrated with the "PHP attempts to background a process" and the "Task List + Cron" always works out far far better.


« previous php.general (#239314) next »