★ wanayoo — archive 1999 http://www.php.net/manual/tr/function.is-executable.phpNouvelle recherche | Portail wanayoo
PHP
Sunday, November 11, 2001  
downloads | documentation | faq | support | reporting bugs | links 

search for in the  


previousis_dir
is_filenext

Last updated: Mon, 05 Nov 2001
view this page in English | Brazilian Portuguese | Czech | Dutch | French | German | Hungarian | Italian | Japanese | Korean | Polish | Spanish | Turkish | Plain HTML

is_executable

(PHP 3, PHP 4 >= 4.0.0)

is_executable -- Tells whether the filename is executable

Description

bool is_executable (string filename)

Returns TRUE if the filename exists and is executable.

The results of this function are cached. See clearstatcache() for more details.

This function will not work on remote files; the file to be examined must be accessible via the server's filesystem.

See also is_file() and is_link().

User Contributed Notes
is_executable
add a note about notes
drtebi@hotmail.com
09-Feb-2001 07:12

[Editor's Note: This is the expected behavior (at least on most Unix-like
systems). If a directory is not executable, then you cannot get details on
the files in the directory - this includes the permissions.

--zak@php.net]

This does not work on directories!
look at this example:

if(is_file("foo/bar"))
print "found it";

if "bar" exists, but directory "foo" is not executable,
you will NOT get "found it" as result.

add a note about notes


previousis_dir
is_filenext

Last updated: Mon, 05 Nov 2001

show source | credits | mirror sites:  

Copyright © 2001 The PHP Group
All rights reserved.
This mirror generously provided by: Rackspace
Last updated: Sun Nov 11 21:54:36 2001 CST