title: File permission 755 but PHP file_exists() returns false
body: <p>I have an image file on my hosting.</p>
  
  <ul>
  <li>FileZilla says its got permission <code>755 (-rwxr-xr-xr)</code></li>
  </ul>
  
  <p>however:</p>
  
  <ul>
  <li><code>file_exists($path)</code> returns false</li>
  </ul>
  
  <p>possible problem source:</p>
  
  <ul>
  <li>PHP may read permission wrong for some reason - PHP-manual's example of reading file permissions ( function <code>fileperms($path)</code> ) says that the fileperms are <code>-rwxr-xr-x</code></li>
  </ul>
  
  <p><strong>NOTE!:</strong> The file is accessible from the web browser - if I print the file path as <code>&lt;img&gt;</code>'s src image displays just ok... also <code>is_file($path)</code> returns true</p>
  
  <p>Any ideas what might cause this problem ? :)</p>
  
  <p><strong>EDIT1&amp;2:</strong>
  BTW: PHP checking path: './subfolder/subfolder2/filename.jpg', browser file address - 'mydomain.com/testfolder/subfolder/subfolder2/filename.jpg' - the main script(which includes another script which is executing the file-exist) is in the 'testfolder' - any problem with that?</p>
  
  <p>Current folder (<code>getcwd()</code>) is "/data/web/virtuals/87454/virtual/www/testfolder" 
  fopen($path) does NOT return boolean false and also does NOT raise any error</p>