Share on Google+Share on Google+

PHP is_executable() Function and example

Advertisement
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

Share this Tutorial Follow us on Twitter, or add us on Facebook or Google Plus to keep you updated with the recent trends of Java and other open source platforms.