title: PHP include file in webroot from file outside webroot
body: <p>I have a php file outside my webroot in which I want to include a file that is inside the webroot.</p>
  
  <blockquote>
    <p>folder outside webroot<br>
     - > php file in which I want to include<br>
    webroot<br>
     - > file to include</p>
  </blockquote>
  
  <p>So I have to go one directory up, but this doesnt work:</p>
  
  <pre><code>include('../webroot/file-to-include.php');
  </code></pre>
  
  <p>Include full path doesn't work either:</p>
  
  <pre><code>include('home/xx/xx/domains/mydomain/webroot/file-to-include.php');
  </code></pre>
  
  <p>How can I accomplish this?</p>