title: php fopen returns false but file is readable/writable
body: <p>have a file that is readable and writable but fopen is returning false...</p>
  
  <pre><code>if(is_readable($file)) echo 'readable ';
  if(is_writable($file)) echo 'writable ';
  $fp = fopen($file, 'a+');
  var_dump($fp);
  </code></pre>
  
  <p>result is</p>
  
  <pre><code>readable writable bool(false)
  </code></pre>
  
  <p>Any ideas?</p>
  
  <p>sure it must be a permission thing but tried 777 on the file with same results. </p>