title: No such file or directory PHP error - But the file is there
body: <p>i receive this PHP Error whenever i try to include a php file in my index.php:</p>
  
  <blockquote>
    <p>No such file or directory</p>
  </blockquote>
  
  <p>At first i include this file at the beginning of the index.php: <code>require_once("../resources/engine/settings.php");</code></p>
  
  <p>And i get no error, but when i include the header file with <code>require_once($TEMPLATES."/header.php");</code></p>
  
  <p>I get that error.</p>
  
  <p>$TEMPLATES is a variable that's declared in settings.php (that is included correctly into index.php).</p>
  
  <p>This is settings.php:</p>
  
  <pre><code>&lt;?php
  
       $BASEURL = "http://localhost/webname";
       $CSSFolder = $BASEURL."/public/css";
       $CSS = $CSSFolder."/style.css";
       $IMGFolder = $BASEURL."/public/img";
  
       $ROOT = $_SERVER["DOCUMENT_ROOT"]."/webname";
       $TEMPLATES = $ROOT."/resources/templates";
       $ENGINE = $ROOT."/resources/engine";
  
  ?&gt;
  </code></pre>