note 11199 deleted from function.is-executable by felipe

From: Date: Sat, 29 Dec 2007 20:13:13 +0000
Subject: note 11199 deleted from function.is-executable by felipe
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-134192@lists.php.net to get a copy of this message
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. --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.

« previous php.notes (#134192) next »