PHP函数is_executable介绍
定义和用法
is_executable() 函数检查指定的文件是否可执行。
语法
is_executable(file)
说明
如果文件存在且可执行,则返回 true。
提示和注释
注释:本函数的结果会被缓存。请使用 clearstatcache() 来清除缓存。
注释:is_executable() 自 PHP 5.0.0 版起可用于 Windows。
例子
<?php$file = "setup.exe";if(is_executable($file)) { echo ("$file is executable"); }else { echo ("$file is not executable"); }?>
输出:
setup.exe is executable
本文出自:琅枫个人博客。如需转载请注明出处!
本文出处:"https://www.langfujun.top/function/282.html"
如果您觉得文章对你有帮助,可以进行打赏。
打赏多少,您高兴就行,谢谢您对琅枫博客的支持! ~(@^_^@)~
微信打赏

支付宝打赏
