title: php get the root of the file
body: <p>how can i get the root to the main folder? for example i run file in this location :</p>
  
  <pre><code>public_html/admin/user/etc/index.php
  </code></pre>
  
  <p>and i want to include file from </p>
  
  <pre><code>public_html/includes/user/etc/function.php
  </code></pre>
  
  <p>so i want to do something like this:</p>
  
  <pre><code>include(get_first_default_folder().'includes/user/etc/function.php');
  </code></pre>
  
  <p>instead of:</p>
  
  <pre><code>include('../../../includes/user/etc/function.php');
  </code></pre>