English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية
A função is_executable() pode verificar se o arquivo especificado é executável. Se o arquivo for executável, esta função pode retornar true.
bool is_executable ( string $filename )
Esta função pode determinar se o nome do arquivo é executável.
<?php $file = "/PhpProject/setup.exe"; if(is_executable($file)) { echo $file." é executável"; } else { echo $file." não é executável"; } ?>
Resultado de saída
/PhpProject/setup.exe é executávelPHP Filesystem Referência