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
  • Get the inode of the file fileinode

    fileinode

    Gettheinodeofthefile
  • Returns the location where the file pointer is read/write ftell

    ftell

    Returnsthelocationwh
  • Positioning in file pointer fseek

    fseek

    Positioninginfilepoi
  • Change the group to which the file belongs chgrp

    chgrp

    Changethegrouptowhic
  • Parse a configuration file parse_ini_file

    parse_ini_file

    Parseaconfigurationf
  • Get file modification time filemtime

    filemtime

    Getfilemodificationt
  • Change file mode chmod

    chmod

    Changefilemode
  • Rewind the file pointer position rewind

    rewind

    Rewindthefilepointer
Popular Articles