[UPHPU] Forking A Script

Dave Smith dave at thesmithfam.org
Mon Jul 23 13:26:25 MDT 2007


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.

--Dave


More information about the UPHPU mailing list