fork
Posted by: Losing
Posted on: 2007-05-07 09:26:00
I need to kick off a php script that is going to take a LONG time from a cgi script. I can't wait for it to return. How can I do this without using pcntl_fork() ? That doesn't seem to be compiled.
edit* I can use AJAX for this, but I wanted to avoid that :(
nevermind, fixed, fyi
changed
exec("php script.php arg1");
to
exec("php script.php arg > /dev/null &");
Edited by Losing on 05/07/07 09:42 AM (server time).