The usage of pcntl_fork in a webserver environment is not encouraged according the PHP documentation. As an alternative, you can use the following code:
exec("/usr/bin/php some_script.php > /dev/null &");
// Here you can do some more actions, while some_script.php
// is still executing.
Even if the caller script has ended, the some_script.php will still run. A drawback certainly is the lack of return value.
Comments
Cool blog,looking to communicate