title: calling include from an included file
body: <p>So,
  examining this directory structure</p>
  
  <ul>
  <li><em>/include_one.php</em></li>
  <li><em>/include_two.php</em></li>
  <li><em>/directory/main_file.php</em></li>
  </ul>
  
  <p>Assume that I am in <em>/directory/main_file.php</em> and I call <code>include('../include_one.php');</code> inside of <em>include_one.php</em>, to include <em>include_two.php</em>. Do I need to call <code>include('include_two.php);</code> or <code>include('../include_two.php');</code>?</p>
  
  <p>So my question is: When including a file, is the 'relative include path' shifted to the included file, or does it remain at the main including file?</p>
  
  <p>I am aware that the best alternative would be to have a config.php which contains the root_path, however this is not possible at this stage.</p>
  
  <p><hr /><strong>update: </strong><br />
  So, im not sure who is right, as here is my test</p>
  
  <p>directory structure</p>
  
  <p>/include.php<br>
  /start/start.php<br>
  /folder1/includeone.php<br>
  /folder1/folder2/includetwo.php  </p>
  
  <p>and here is the contents of each file</p>
  
  <p><strong>start.php</strong></p>
  
  <pre><code>&lt;?php 
    echo 'including ../include.php&lt;br /&gt;';
    include('../include.php');
  ?&gt;
  </code></pre>
  
  <p><strong>include.php</strong></p>
  
  <pre><code>&lt;?php 
    echo 'including folder1/includeone.php&lt;br /&gt;';
    include('folder1/includeone.php');
  ?&gt;
  </code></pre>
  
  <p><strong>includeone.php</strong></p>
  
  <pre><code>&lt;?php 
    echo 'including folder2/includetwo.php&lt;br /&gt;';
    include('folder2/includetwo.php');
  ?&gt;
  </code></pre>
  
  <p><strong>includetwo.php</strong></p>
  
  <pre><code>&lt;?php 
    echo 'done&lt;br /&gt;';
  ?&gt;
  </code></pre>
  
  <p>and the output is </p>
  
  <blockquote>
    <p>including ../include.php<br>
    including folder1/includeone.php<br>
    including folder2/includetwo.php<br>
    done</p>
  </blockquote>