title: PHP: Warning: include failed to open stream no such file or directory on Windows
body: <p>I have an include statement in a PHP script running on xampp on Windows.  If I use a relative path :</p>
  
  <pre><code>include '../config/eventInfoConfig.php';  
  </code></pre>
  
  <p>I get the error message: </p>
  
  <blockquote>
    <p>Warning: include(../config/eventInfoConfig.php) [function.include]: failed to open stream: No such file or directory </p>
  </blockquote>
  
  <p>But if I use the absolute path I have no error:</p>
  
  <pre><code>include 'c:/xampp/htdocs/xampp/appTrials/myApp/config/eventInfoConfig.php'; 
  </code></pre>
  
  <p>How can I use a relative path in my include without causing an error?</p>