title: Why doesnt ../ (dot dot slash) work in my root directory?
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/5398451/relative-include-files">Relative include files</a>  </p>
  </blockquote>
  
  
  
  <p>For example,</p>
  
  <pre><code>    include('../admin/db_cred.php');
  </code></pre>
  
  <p>That works if I am in another folder such as public. However if I am just at www.SITE.com/index.php, it does not work.</p>
  
  <p>Warning: include(../admin/db_cred.php) [function.include]: failed to open stream: No such file or directory in /home/[...].php on line 6</p>
  
  <p>I added the (dot dot slash) because searching ../ does not work very well...</p>