title: How to batch execute PHP scripts from one PHP script?
body: <p>I have a series of PHP scripts that I want to run in a particular order.  I tried using</p>
  
  <pre><code>&lt;?php
      exec('file1.php');
      exec('file2.php');
      exec('file3.php');
  ?&gt;
  </code></pre>
  
  <p>to accomplish this, but just got a series of errors.  If I run them from the command line, they all work fine. How to fix this problem?</p>