is_executable

  • PHP

    $executable = is_executable('/path/to/foobar');
    var_export($executable);
     
    //=> true

    Ruby

    executable = File.executable?('/path/to/foobar')
    p executable
     
    #=> true

    see also

is_double is_file

Looking for Rails or PHP web application development, integration, and training?

Rails for PHP is brought to you by Maintainable Software. Get custom web applications and personalized training from the authors of the book and website.