英 [?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 "該文件是可執(zhí)行的";
}else{
    echo "該文件不可執(zhí)行";
}
?>