Unix and Linux Discussions Tagged with executable |
|
Thread / Thread Starter |
Last Post |
Replies |
Views |
Forum |
|
|
|
4 |
3,744 |
UNIX for Beginners Questions & Answers |
|
|
|
2 |
8,071 |
Shell Programming and Scripting |
|
|
|
1 |
7,126 |
UNIX for Beginners Questions & Answers |
|
|
|
4 |
10,707 |
Shell Programming and Scripting |
|
|
|
3 |
2,668 |
Shell Programming and Scripting |
|
|
|
9 |
11,106 |
UNIX for Dummies Questions & Answers |
|
|
|
2 |
3,864 |
Shell Programming and Scripting |
|
|
|
3 |
3,270 |
UNIX for Dummies Questions & Answers |
|
|
|
6 |
2,592 |
UNIX for Dummies Questions & Answers |
|
|
|
8 |
5,066 |
UNIX for Dummies Questions & Answers |
|
|
|
3 |
12,018 |
Shell Programming and Scripting |
|
|
|
0 |
3,888 |
OS X (Apple) |
|
|
|
2 |
7,401 |
Linux |
|
|
|
0 |
4,280 |
Windows & DOS: Issues & Discussions |
|
|
|
1 |
2,582 |
Shell Programming and Scripting |
|
|
|
2 |
4,083 |
OS X (Apple) |
|
|
|
9 |
28,634 |
Solaris |
|
|
|
10 |
15,020 |
OS X (Apple) |
|
|
|
0 |
2,802 |
UNIX and Linux RSS News |
|
|
|
2 |
12,135 |
Shell Programming and Scripting |
|
|
|
6 |
8,262 |
UNIX for Dummies Questions & Answers |
|
|
|
0 |
4,172 |
UNIX and Linux Applications |
|
|
|
0 |
2,297 |
Shell Programming and Scripting |
|
|
|
0 |
2,117 |
Complex Event Processing RSS News |
|
|
|
0 |
5,092 |
AIX |
|
|
|
1 |
2,441 |
Programming |
|
|
|
2 |
2,166 |
Solaris |
|
|
|
1 |
4,924 |
Shell Programming and Scripting |
|
|
|
3 |
5,316 |
Shell Programming and Scripting |
|
|
|
4 |
2,665 |
Shell Programming and Scripting |
|
|
|
2 |
3,122 |
Shell Programming and Scripting |
|
|
|
2 |
12,758 |
Filesystems, Disks and Memory |
|
|
|
6 |
10,265 |
Cybersecurity |
|
|
|
9 |
5,147 |
UNIX for Dummies Questions & Answers |
|
|
|
3 |
7,078 |
Programming |
|
|
|
3 |
3,408 |
UNIX for Dummies Questions & Answers |
|
|
|
27 |
10,968 |
UNIX for Dummies Questions & Answers |
|
|
|
4 |
12,142 |
Programming |
|
|
|
4 |
3,449 |
Programming |
|
|
|
8 |
5,759 |
UNIX for Dummies Questions & Answers |
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)