[UPHPU] Forking A Script
Ken Snyder
ksnyder at coremr.com
Mon Jul 23 13:36:14 MDT 2007
Dave Smith wrote:
> 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
So, you're saying that the PHP exec command executes as NOBODY so it may
not have rights to execute? Otherwise, I'm not sure why "&" seems to
have no effect in my test.
-- Ken
More information about the UPHPU
mailing list