note 11199 deleted from function.is-executable by felipe

[email protected]
Newsgroups php.notes
Message-ID <[email protected]>
Note Submitter: drtebi at hotmail dot com 

----

[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.

[email protected]]

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.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.