(PHP 4, PHP 5, PHP 7)
Tells whether the filename is executable
bool is_executable ( string $filename )
Tells whether the filename is executable.
Parameters:
filename
Path to the file.
Returns:
Returns TRUE
if the filename exists and is executable, or FALSE
on error.
Exception:
Upon failure, an E_WARNING
is emitted.
Notes:
The results of this function are cached. See clearstatcache() for more details.
Examples:
is_executable() example
<?php $file = '/home/vincent/somefile.sh'; if (is_executable($file)) { echo $file.' is executable'; } else { echo $file.' is not executable'; } ?>
See also:
Please login to continue.