PHP is_executable() 函数
定义和用法
is_executable() 函数检查指定的文件是否可执行。
语法
is_executable(file)
| 参数 | 描述 | 
|---|---|
| file | 必需。规定要检查的文件。 | 
说明
如果文件存在且可执行,则返回 true。
例子
<?php
$file = "setup.exe";
if(is_executable($file))
  {
  echo ("$file is executable");
  }
else
  {
  echo ("$file is not executable");
  }
?>
输出:
setup.exe is executable
