PHP is_executable() Function

The is_executable() function checks whether the specified file is executable.This function returns TRUE if the file is executable.

bool is_executable ( string $filename )

Tells whether the filename is executable.

Example -

ParameterDescription
fileRequired. Specifies the open file to check

Note -

The result of this function are cached. Use clearstatcache() to clear the cache.The is_executable() function became available with Windows in PHP 5.0