PHP is_executable() Function and example

This this PHP tutorial illustrates the use of file handling function is_executable() and its example

 
 

Share on Google+Share on Google+

PHP is_executable() Function and example

Ads

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

Advertisements

Posted on: October 30, 2009 If you enjoyed this post then why not add us on Google+? Add us to your Circles