is_executable — 判断给定文件名是否可执行
说明
bool
is_executable (
string$filename )
如果文件存在且可执行则返回 TRUE。
例子:
$file = "/use/ddd/text.php";
if(is_executable($file)){
print("this file is executable");
}else{
print("this file is not executable");
}
NOTE:本函数会被缓存,请使用clearstatcache()清除缓存;