Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

php execute a background process

exec(sprintf("%s > %s 2>&1 & echo $! >> %s", $cmd, $outputfile, $pidfile));
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #php #execute #background #process
ADD COMMENT
Topic
Name
3+3 =