PHP » PYTHON |
login |
register |
about
|
PYTHON is_executable
is this article helpful?
|
Python replacement for PHP's is_executable
[
edit
| history
]
import os os.access(filename, os.X_OK) is_executable(PHP 4, PHP 5) is_executable — Tells whether the filename is executable Description
bool is_executable
( string $filename
)
Tells whether the filename is executable. Parameters
Return ValuesReturns TRUE if the filename exists and is executable, or FALSE on error. Changelog
Examples
Example #1 is_executable() example
<?php
Notes
Tip
As of PHP 5.0.0, this function can also be used with some URL wrappers. Refer to List of Supported Protocols/Wrappers for a listing of which wrappers support stat() family of functionality. |
more
Recently updated
more
Most requested
|