title: Can't access file in parent directory using ../
body: <p>I'm attempting to access the file config.php from the file memfuncs.php.</p>
  
  <p>Here are the locations of the files:</p>
  
  <pre><code>html/config.php
  html/resources/loginfuncs.php
  </code></pre>
  
  <p>Here is the code I am trying to use:</p>
  
  <p>loginfuncs.php:</p>
  
  <pre><code>&lt;?php
      require('../config.php');
      function checklogin($username, $password){
  </code></pre>
  
  <p>However this does not work and produces the error:</p>
  
  <pre><code>[Tue Oct 14 15:17:21.304371 2014] [:error] [pid 4431] [client 127.0.0.1:32980] PHP Fatal error:  require(): Failed opening required '../config.php' (include_path='.:/usr/share/php:/usr/share/pear') in /var/www/html/pt90/resources/loginfuncs.php on line 2
  </code></pre>
  
  <p>Does anyone know what I'm doing wrong?
  Thanks.</p>