title: Document Root PHP
body: <p>Just to confirm, is using:</p>
  
  <pre><code>$_SERVER["DOCUMENT_ROOT"]
  </code></pre>
  
  <p>the same as using: /</p>
  
  <p>in HTML.</p>
  
  <p>Eg. If current document is:</p>
  
  <pre><code>folder/folder/folder/index.php
  </code></pre>
  
  <p>I could use (in HTML) to start at the roort:</p>
  
  <pre><code>/somedoc.html
  </code></pre>
  
  <p>and to do the same in PHP I would have to use:</p>
  
  <pre><code>$_SERVER["DOCUMENT_ROOT"] . "/somedoc.html";
  </code></pre>
  
  <p>Is that correct? Is there an easier way to do it?</p>