Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

php exec get pid

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

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

var_dump($pid);
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #php #exec #pid
ADD COMMENT
Topic
Name
9+6 =