hasPermissions.php 251 B

1234567891011121314
  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&&
  6. is_writeable($path)===true) return true;
  7. return false;
  8. }
  9. ?>