PHP is_executable judgment file is an executable _php tutorial

Source: Internet
Author: User
PHP is_executable judgment file is an executable file

Is_executable
(PHP 4, PHP 5)

Is_executable-Tell if the executable file name

Describe
Boolean is_executable (string $ file name)
Tells if filename is an executable file.

Parameters

Filename
The file path.


return value
Returns true if the file exists and can be executed, or false error.

Modify

Release Notes
5.0.0 is_executable () becomes available with Windows


Instance

Example # 1 is_executable () example

$file = '/home/vincent/somefile.sh ';

if (is_executable ($file)) {
echo $file. ' Is executable ';
} else {
echo $file. ' is not executable ';
}

?>


http://www.bkjia.com/PHPjc/445462.html www.bkjia.com true http://www.bkjia.com/PHPjc/445462.html techarticle php is_executable judgment file is an executable file is_executable (PHP 4, PHP 5) is_executable-tells whether the executable file name describes the Boolean is_executable (string $ text ...

  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.