Re: [PHP] Can I fork a PHP thread?

2001-01-18 Thread Terrence Chay
on 1/17/01 10:12 AM, Chris Lee at [EMAIL PROTECTED] wrote: There are occasions when I'd like to execute some long-running task in the background, in response to some user action. It seems that Im nearly posative this isnt what your looking for, but I thought I would see if maybe it was :)

[PHP] Can I fork a PHP thread?

2001-01-17 Thread Dylan McNamee
There are occasions when I'd like to execute some long-running task in the background, in response to some user action. It seems that PHP has all the neccesary mechanisms to allow me to do this, but in my perusing of the manuals/FAQ's/digests, etc, I don't see such a facility. For example,

Re: [PHP] Can I fork a PHP thread?

2001-01-17 Thread Chris Lee
Im nearly posative this isnt what your looking for, but I thought I would see if maybe it was :) compile php as a cgi so you can run it from the command prompt. then just run the php file from the command prompt through exec () ? exec("php -q somephpfile.php "); ? untested of course. Chris