exec - I can't create a PHP background process -


so after user submits form want create php background process checks stuff data submitted, if leave still want checking problem can't work, i've looked @ questions related on site , not find solution. did find code here

exec(sprintf("%s > %s 2>&1 & echo $! >> %s", $cmd, "output.txt", "pid.txt")); 

but problem outputs last thing , adds junk in there to.

output:

sh: line 1: *****: command not found 


Comments

Popular posts from this blog

python - Healpy: From Data to Healpix map -

c - Bitwise operation with (signed) enum value -

xslt - Unnest parent nodes by child node -