title: cannot find file with file_exists
body: <p>I am trying to look for a file called <code>test.txt</code> within the folder called <code>.test</code>.</p>
  
  <pre><code>&lt;?php 
   $path = '/localhost/joshcms/.test/test.txt';
   $fileexists = file_exists($path);
   if ($fileexists == '1') {
    $result = 'true';
   } else {
     $result = 'false';
   }
  ?&gt;
  </code></pre>
  
  <p>Please excuse the horrible formatting, I am creating this PHP within Jade.</p>
  
  <p>I, first of all, had the <code>$path</code> variable set to <code>.test/test.txt</code> so when it searched for the file, it looked in: <code>localhost/joshcms/.test/test.txt</code> because it was a relative path; because that never worked, I then changed the code to look the way it is above and yet, it still does not work. I then tried with a file that was in the same folder and that worked fine.</p>
  
  <p>I'm not too sure if this error is occurring due to me trying to find something in a hidden folder or if it's just the function doesn't work unless the file is in the same directory as the PHP script/file itself.</p>