php man page for is_executable

Query: is_executable

OS: php

Section: 3

Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar

IS_EXECUTABLE(3)							 1							  IS_EXECUTABLE(3)

is_executable - Tells whether the filename is executable

SYNOPSIS
bool is_executable (string $filename)
DESCRIPTION
Tells whether the filename is executable.
PARAMETERS
o $filename - Path to the file.
RETURN VALUES
Returns TRUE if the filename exists and is executable, or FALSE on error.
EXAMPLES
Example #1 is_executable(3) example <?php $file = '/home/vincent/somefile.sh'; if (is_executable($file)) { echo $file.' is executable'; } else { echo $file.' is not executable'; } ?>
ERRORS
/EXCEPTIONS Upon failure, an E_WARNING is emitted.
NOTES
Note The results of this function are cached. See clearstatcache(3) for more details. Tip As of PHP 5.0.0, this function can also be used with some URL wrappers. Refer to "Supported Protocols and Wrappers" to determine which wrappers support stat(3) family of functionality.
SEE ALSO
is_file(3), is_link(3). PHP Documentation Group IS_EXECUTABLE(3)
Related Man Pages
is_executable(3) - php
file_exists(3) - php
filegroup(3) - php
fileowner(3) - php
is_writable(3) - php
Similar Topics in the Unix Linux Community
Renaming an executable file
How to force executable creation
Check for file size is zero or not.
assingn a variable a filename and then reading it in
Call a C programming executable inside a C program