php execute a background process
snippet in php

php execute a background process

user8590

proc_close( proc_open( "./command --foo=1 &", array(), $foo ) );

php execute a background process

user6991

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