英 [?g?zekj?t?bl]??

adj.可執(zhí)行;實(shí)行的,執(zhí)行的

php is_executable()函數(shù) 語(yǔ)法

作用:檢查指定的檔案是否可執(zhí)行。

語(yǔ)法:is_executable(file)

#參數(shù):

參數(shù)說(shuō)明
file? ??必要。規(guī)定要檢查的文件。? ??

說(shuō)明:若檔案存在且可執(zhí)行,則傳回 true。

php is_executable()函數(shù) 範(fàn)例

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