title: How to know user permissions allow to create directory in PHP
body: <p><strong>Q : How to know user permissions allow to create directory in PHP?</strong></p>
  
  <hr>
  
  <p><strong>Case</strong> : I want to create a directory using <code>mkdir()</code> function in PHP.</p>
  
  <p><strong>Problem</strong> : How do I know that I'm in admin state : able to create directory permissions using current OS.</p>
  
  <p>Moreover, I want to check the permissions before using <code>mkdir()</code> function for some action trigger.</p>
  
  <p>Another suggest will be appreciated. </p>