title: PHP exec() Function Creates 1000s of Processes on Server :(
body: <p>I am trying to trigger a PHP script from another PHP script using exec() function. On my local system, it triggers the other script. But, when I execute it on server, it creates 1000s of processes &amp; they are running in background :( Here is the reason why I have to do this.</p>
  
  <p>I am sending SMS via PHP script. This PHP script is executed via Command Prompt on server. Now, to test SMS functionality, I have to wait for someone to execute my SMS PHP script on server via Command Prompt.</p>
  
  <p>So, I have written a script, execute.php, with only one statement,</p>
  
  <pre><code>exec('php index.php');
  </code></pre>
  
  <p>to trigger my SMS PHP script, index.php.</p>
  
  <p>I hit execute.php from browser. But, browser just waits for the server &amp; multiple processes are created on server which ultimately slows down the server.</p>
  
  <p>Please help :(</p>