Home Tutorial Php Phpfiles PHP is_executable() Function and example

 
 

PHP is_executable() Function and example
Posted on: October 30, 2009 at 12:00 AM
This this PHP tutorial illustrates the use of file handling function is_executable() and its example

Syntax

bool is_executable(file_name)

  • Find the PHP is_executable() function states whether the given file is executable or not


Example of PHP is_executable Fu
Code
<?php

    if
(is_executable("c:\agpad\agpad.exe"))
    echo
"file is executable";
    else
    echo
"file is not executable";
?>


Output
file is executable

Related Tags for PHP is_executable() Function and example:


Ask Questions?

If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.

Ask your questions, our development team will try to give answers to your questions.