title: require_once files from another directory requiring within
body: <p>This is a big confusing but I'll try to be as clear as possible.</p>
  
  <p>I am using the Starter Site PHP Template in Web Matrix for an assessmnent, now when I move several files such as the files containing the database details, header, footer ect.. into the admin file I am having an issue with my index.php and page.php.</p>
  
  <p>These files use <code>require_once()</code> to include several files within the admin folder. However in the admin folder the files being required have <code>require_once</code> tags again within that directory.</p>
  
  <p>When I use <code>require_once('admin/database.php');</code> the database file has <code>require_once(somefile.php)</code> within it. There are numerous files like this being included.</p>
  
  <p>How can I use include these files using <code>require_once</code> in the root directory without getting errors like these.</p>
  
  <pre><code>warrning: require_once(/Includes/simplecms-config.php): failed to open stream: No such file or directory in C:\xampp\htdocs\starter-ste\admin\Includes\connectDB.php on line 2
  </code></pre>
  
  <p>The includes folder is located within the <code>/admin/</code> folder.</p>