HomeMenu
Jesus · Bible · HTML · CSS · JS · PHP · SVG · Applications

is_executable

Description

The is_executable of Filesystem for PHP tells whether the filename is executable.

Syntax

is_executable(
    string $filename
): bool

Parameters

filename

Path to the file.

Return

Returns true if the filename exists and is executable, or false on error.

Examples

1 · filename

<?

$filename = "/mydirectory/myfile.php";

$return = is_executable($filename);

if($return)
{
    echo $filename . " is executable";
}
else
{
    echo $filename . " is not executable";
}
/mydirectory/myfile.php is not executable