Current Location: Home> Function Categories> is_executable

is_executable

Determine whether the given file name is executable
Name:is_executable
Category:File system
Programming Language:php
One-line Description:Determine whether the file is executable.

Definition and usage

is_executable() function checks whether the specified file is executable.

实例

<?php
$file = "setup.exe";
if(is_executable($file))
  {
  echo ("$file is executable");
  }
else
  {
  echo ("$file is not executable");
  }
?>

输出:

setup.exe is executable

grammar

 is_executable ( file )
parameter describe
file Required. Specify documents to be inspected.

illustrate

Returns true if the file exists and is executable.

Similar Functions
Popular Articles