Answers for "php exec get pid"

PHP
0

php exec get pid

$command =  'yourcommand' . ' > /dev/null 2>&1 & echo $!; ';

$pid = exec($command, $output);

var_dump($pid);
Posted by: Guest on May-12-2021

Browse Popular Code Answers by Language