is_executable : is_executable « File Directory « PHP
- PHP
- File Directory
- is_executable
is_executable
<?php
$file_name="permissions.php";
//Only works on Windows with PHP 5.0.0 or later
if(is_executable($file_name)) {
echo ("The file $file_name is executable.<br />");
}
else {
echo ("The file $file_name is not executable.<br />");
}
?>
Related examples in the same category