Home Tutorial Php Phpfiles PHP is_executable() Function and example

 
 

Share on Google+Share on Google+
PHP is_executable() Function and example
Posted on: October 30, 2009 at 12:00 AM
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

Advertisement

Related Tags for PHP is_executable() Function and example:


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.

Posted on: October 30, 2009

Recommend the tutorial

Advertisements Advertisements
 

 

 

DMCA.com