2016-01-26 14:31:53 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
function hasPermissions($path) {
|
|
|
|
|
|
|
|
// Check if the given path is readable and writable
|
|
|
|
// Both functions are also verifying that the path exists
|
2016-01-30 20:43:57 +00:00
|
|
|
if (is_readable($path)===true&&is_writeable($path)===true) return true;
|
2016-01-26 14:31:53 +00:00
|
|
|
|
|
|
|
return false;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
?>
|