title: error when require_once() link out of subdirectory
body: <p>I am trying to require_once() a file that is in a folder located in my root... I am requiring this file from a file that is in another sub-folder of my root. </p>
  
  <ul>
  <li><p>Root</p>
  
  <ul>
  <li><p>includes </p>
  
  <ul>
  <li>include_all.php</li>
  </ul></li>
  <li><p>my</p>
  
  <ul>
  <li>question_history.php</li>
  </ul></li>
  </ul></li>
  </ul>
  
  <p>This is my/question_history.php:</p>
  
  <pre><code> &lt;?php require_once("./includes/include_all.php"); ?&gt;
  </code></pre>
  
  <p>I am getting these errors: </p>
  
  <blockquote>
    <p>Warning:
    require_once(./includes/include_all.php) [function.require-once]:
    failed to open stream: No such file or directory in
    /Applications/XAMPP/xamppfiles/htdocs/AnswerTree2/my/question_history.php
    on line 3</p>
    
    <p>Fatal error: require_once() [function.require]: Failed opening
    required './includes/include_all.php'
    (include_path='.:/Applications/XAMPP/xamppfiles/lib/php:/Applications/XAMPP/xamppfiles/lib/php/pear')
    in
    /Applications/XAMPP/xamppfiles/htdocs/AnswerTree2/my/question_history.php
    on line 3</p>
  </blockquote>
  
  <p>I am kinda new to keeping files in different folders as I used to just put everything in root folder. bad practice i know. but anyway hope this is enough detail.</p>