PHP выполнить фоновый процесс

exec(sprintf("%s > %s 2>&1 & echo $! >> %s", $cmd, $outputfile, $pidfile));
Nutty Newt