PHP is_executable() Function
Complete PHP Filesystem Reference Manual
Definition and Usage
The is_executable() function checks whether the specified file is executable.
Returns TRUE if the file is executable.
Syntax
is_executable(file)
| Parameters | Description |
|---|---|
| file | Required. Specifies the file to check. |
Tips and Notes
**Note:** The results of this function are cached. Use clearstatcache() to clear the cache.
**Note:** Since PHP 5.0, is_executable() is available on Windows.
Example
The code above will output:
setup.exe is executable
Complete PHP Filesystem Reference Manual