PHP is_executable judgment file is an executable file
Is_executable
(PHP 4, PHP 5)
Is_executable-Tell if the executable file name
Describe
Boolean is_executable (string $ file name)
Tells if filename is an executable file.
Parameters
Filename
The file path.
return value
Returns true if the file exists and can be executed, or false error.
Modify
Release Notes
5.0.0 is_executable () becomes available with Windows
Instance
Example # 1 is_executable () example
$file = '/home/vincent/somefile.sh ';
if (is_executable ($file)) {
echo $file. ' Is executable ';
} else {
echo $file. ' is not executable ';
}
?>
http://www.bkjia.com/PHPjc/445462.html www.bkjia.com true http://www.bkjia.com/PHPjc/445462.html techarticle php is_executable judgment file is an executable file is_executable (PHP 4, PHP 5) is_executable-tells whether the executable file name describes the Boolean is_executable (string $ text ...