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

Upgrade php version of xampp not success -

amazon web services - S3 and apache mod_proxy with basic authentication -

powershell - This solution contains one or more assemblies targeted for the global assembly cache -