is_executable
Determine whether the given file name is executable
is_executable()
function checks whether the specified file is executable.
<?php $file = "setup.exe"; if(is_executable($file)) { echo ("$file is executable"); } else { echo ("$file is not executable"); } ?>
输出:
setup.exe is executable
is_executable ( file )
parameter | describe |
---|---|
file | Required. Specify documents to be inspected. |
Returns true if the file exists and is executable.