title: PHP: How to check if file not exists or permission is denied?
body: <p>I want to check if file do not exists. When <code>file_exists()</code> function returns <code>false</code> I can't be sure if the file do not exist or I don't have permission to the file.</p>
  
  <p>How to discern that two possibilities?</p>