title: php check chmod permissions for folder
body: <p>Hello how can I check if a folder has permissions to be writable and readable via php.</p>
  
  <p>I want to check for permissions for include and file_get/put_contents, too.</p>
  
  <p>I'm creating test code to check for permissions.</p>