title: Can't Run a background PHP Script With Popen
body: <p>I have a PHP code that needs to run in background (no cronjobs or similar options) that is complete, but I just can't call it in the background. I'm trying the following:</p>
  
  <pre><code>$files = $_GET['files'];
  $id = $_GET['id'];
  
  pclose(popen("start /B D:\\server\\php\\php.exe D:\\server\\www\\whatever\\importat\\import.php?files=".$files."&amp;id=".$id." 2&gt;nul &gt;nul", "r"));
  </code></pre>
  
  <p>But it' never runs. If I go and run <strong><em>import.php</em></strong> manually, it works without fail. </p>
  
  <p>PS: I can't change the import.php.</p>
  
  <p>Help?</p>