英 [ɪgˈzekjətəbl]

adj. Executable; executable, executable

php is_executable() function syntax

Function: Check whether the specified file is executable.

Syntax: is_executable(file)

Parameters:

Parameter Description
file Required. Specifies the documents to be checked.

Description: Returns true if the file exists and is executable.

php is_executable() function example

<?php
$file = is_executable("./test.txt");
if($file == 1)
{
    echo "该文件是可执行的";
}else{
    echo "该文件不可执行";
}
?>