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

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

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

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

語法:is_executable(file)

#參數(shù):

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

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

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

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