title: Is there a way to get the document root on localhost in the same format that we get on remote servers (like /home/MyUserName/public_html)?
body: <p>CodeIgniter documentations says:</p>
  
  <blockquote>
    <p>For the best security, both the <strong><em>system</em></strong> and any <strong><em>application</em></strong>
    folders should be placed above web root so that they are not directly
    accessible via a browser.  After moving them, open your main index.php
    file and set the $system_folder and  application_folder variables,
    preferably with a full path, e.g. '/www/MyUser/system'.</p>
  </blockquote>
  
  <p>and through echoing the PHP <code>$_SERVER['DOCUMENT_ROOT']</code> variable I've gotten the document root of my remote server, which was <code>/home/MyUserName/public_html</code> but when I tried to do the same on my localhost I've gotten a different type of pathes (a windows path), it was <code>D:/xampp/htdocs</code>. Why? and Is there a way through which I can get a path like the first one on my localhost?</p>