[UPHPU] Forking A Script

Dave Smith dave at thesmithfam.org
Mon Jul 23 13:30:10 MDT 2007


Dave Smith wrote:
> John David Anderson wrote:
>> You may not need to fork. Try appending an ampersand to the end of 
>> the command:
>>
>> $ php doReportScript.php &
>
> That will only work if you're executing it in a shell (like bash). If 
> you pass the "&" to php's exec(), for example, it will not work as you 
> expect.

Woops. I stand corrected: 
http://us2.php.net/manual/en/function.exec.php#59698


More information about the UPHPU mailing list