Easy Tutorial
❮ Func Filesystem Ftruncate Func Error Restore Error Handler ❯

PHP is_executable() Function



Definition and Usage

The is_executable() function checks if the specified file is executable.

If the file is executable, the function returns TRUE.

Syntax

Parameter Description
file Required. Specifies the file to check.

Tips and Notes

Note: The result of this function is cached. Use clearstatcache() to clear the cache.

Note: Since PHP 5.0, is_executable() function can be used on Windows.


Example

The above code will output:


❮ Func Filesystem Ftruncate Func Error Restore Error Handler ❯