title: PHP Fails on require_once
body: <p>I've got a PHP script that includes ( or 'requires' ) a set of other scripts. This is effectively for importing all of my classes. What I'm encountering is an HTTP 500 error. I've sifted through and commented out code piece by piece to determine that it's failing on the require_once in one of my files. </p>
  
  <p>Here is the code:</p>
  
  <p>index.php:</p>
  
  <pre><code>&lt;?php
  require_once("std/classes.php");
  ?&gt;
  </code></pre>
  
  <p>And std/classes.php:</p>
  
  <pre><code>&lt;?php
  RequireStandards();
  RequireAddons();
  
  function RequireStandards( )
  {
      $ClassFiles = scandir("classes/standard");
  
      foreach( $ClassFiles as $ClassFile )
      {
          if( $ClassFile == "." || $ClassFile == ".." )
              continue;
  
          //require_once("classes/standard/" . $ClassFile );
      }
  }
  
  function RequireAddons()
  {
      $ClassFiles = scandir("classes");
  
      foreach( $ClassFiles as $ClassFile )
      {
          if( $ClassFile == "." || $ClassFile == ".." || $ClassFile == "standard" )
              continue;
  
          //require_once("classes/" . $ClassFile );
      }
  }
  
  ?&gt;
  </code></pre>
  
  <p>This code will work as it sits, but as soon as I uncomment the requires, it fails. What strikes me as odd is that I have plenty of other sites on this server that act in almost an identical manner. </p>
  
  <p>I feel as if I somehow have my PHP error reporting turned off... which I don't know how to turn back on; as I just upgraded to PHP 5.3. I would typically expect a 'couldnt open file' or some such in my browser, if PHP failed. </p>
  
  <p>Maybe someone could tell me why this is kicking back an HTTP 500, or perhaps just how to re-enable error reporting. It would be much appreciated; this just doesn't seem to make much sense.</p>