hasPermissions.php 248 B

12345678910111213
  1. <?php
  2. function hasPermissions($path) {
  3. // Check if the given path is readable and writable
  4. // Both functions are also verifying that the path exists
  5. if (is_readable($path)===true&&is_writeable($path)===true) return true;
  6. return false;
  7. }
  8. ?>