title: Running PHP exec() asynchronously/multi-processes
body: <p>I'm currently running these lines in a PHP script:</p>
  
  <pre><code>foreach ($list as $route)
  {
      exec('php-cgi ./nextbus-route_stop_predictions.php route=' . $route['route_id']);
  }
  </code></pre>
  
  <p>nextbus-route_stop_predictions.php takes about 15 seconds to run and exec() is ran about 12 times. I was wondering if PHP was able to run these those command lines without needing to wait for the output of the previous exec(). So basically, I want to run this asynchronously/multi-processes.</p>
  
  <p><strong>Update</strong></p>
  
  <p>For anyone still looking for the answer, I used <code>nohup</code> and piped the output to <code>/dev/null</code></p>