php is_executable() function
Translation results:
英 [ɪgˈzekjətəbl]
adj. Executable; executable, executable
php is_executable() functionsyntax
Function: Check whether the specified file is executable.
Syntax: is_executable(file)
Parameters:
Parameter | Description |
file | Required. Specifies the documents to be checked. |
Description: Returns true if the file exists and is executable.
php is_executable() functionexample
<?php $file = is_executable("./test.txt"); if($file == 1) { echo "该文件是可执行的"; }else{ echo "该文件不可执行"; } ?>