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.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php