title: require()  fails even though file_exists() claims file is there
body: <p>Here is my code:</p>
  
  <pre><code>if (file_exists('config.php')) {
      require('config.php'); // This is line 38
  }
  </code></pre>
  
  <p>Which somehow produces the error:</p>
  
  <blockquote>
    <p>Warning: require(config.php) [function.require]: failed to open stream: No such file or directory in /path/name/file.php on line 38</p>
  </blockquote>
  
  <p>How on earth is this possible?</p>
  
  <p>Update: The following <strong>does</strong> work:</p>
  
  <pre><code>if (file_exists(getcwd(). '/config.php')) {
       require(getcwd(). '/config.php');
  }
  </code></pre>