title: php require function using root
body: <p>I have a site with several sub folders and an include folder in the root:</p>
  
  <p><strong>for example</strong> :</p>
  
  <pre><code>www.mysite.com 
  www.mysite.com/includes 
  www.mysite.com/includes/inc.php
  </code></pre>
  
  <p>then a sub folder:</p>
  
  <pre><code>www.mysite.com/sub1/
  www.mysite.com/sub1/page.php
  </code></pre>
  
  <p>in page.php I would like to include the inc.php which is in the includes folder.
  Is that possible, and if so, how can i do that? (tried <code>$_SERVER["DOCUMENT_ROOT"]</code> and didn't work.)</p>
  
  <p>I appreciate the responses, it is quite urgent as I need to move the site to a new server in this format!!!! thanks everyone!</p>