title: how jump from staying for output of shell execute after run in an php script?
body: <p>I have this sample code called main.php:</p>
  
  <pre><code>&lt;?php
  shell_exec('C:\wamp\bin\php\php5.4.3\php.exe a.php');
  shell_exec('C:\wamp\bin\php\php5.4.3\php.exe b.php');
  ?&gt;
  </code></pre>
  
  <p>when execute this script after executing first shell_exec it staying until finishing first shell_exec and then run second.</p>
  
  <p>but I want that script dont stay for finishing first shell_exec and its output and runs second.</p>
  
  <p>now how can I do this?</p>
  
  <p>I have several scripts and I need to run them <strong>Simultaneously</strong> by a <strong>main script</strong> and control them by it. but I dont know that how to run my scripts <strong>Simultaneously</strong> from inside of this <strong>main script</strong>?</p>
  
  <p><strong>update1:</strong> I cant run a.php and b.php by cron jobs because their finishing time is unknown.
  maybe a.php finished after 1 hour or 10 minutes and b.php as same as a.php too.</p>
  
  <p><strong>update2:</strong> I founded a solution in this page: </p>
  
  <p><a href="https://stackoverflow.com/questions/1019867/is-there-a-way-to-use-shell-exec-without-waiting-for-the-command-to-complete">Is there a way to use shell_exec without waiting for the command to complete?</a></p>