title: Pass parameters to new process in PHP
body: <p>I can't seem to use system() to create a long lasting, forked process: (yes, params are OK)</p>
  
  <pre><code>$args = "/code/perl/test/run $a $n $m $s $c &amp;";
  system($args);
  </code></pre>
  
  <p>But, on the flipside this code DOES work, but it doesn't have parameters:</p>
  
  <pre><code>system("/code/perl/test/reset &amp;");
  </code></pre>
  
  <p>So, the problem? My C program "run" is instantly killed with the finishing of the PHP script from the HTTP request.</p>
  
  <p>I have tried using the at daemon to create the process using a seperate parent process, but with no success. www-data was removed from /etc/at.deny</p>
  
  <p>It's worth noting that with the 2nd example I do get program output, but not on the first.</p>