note 48613 deleted from function.is-dir by tomsommer

From: Date: Sun, 02 Jan 2005 00:07:16 +0000
Subject: note 48613 deleted from function.is-dir by tomsommer
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-82553@lists.php.net to get a copy of this message
Note Submitter: intro at intro dot one dot pl ---- For example i have 4 folders in /home directory on unix platform (a,b,c,d) and php5. The script: <?php $files=scandir("/home"); foreach ($files as $file) { if (is_dir($file)) { echo "dir: $file"; } } ?> I have strange thing that function is_dir not always shows every dirs as it is dir. In my example script is_dir returned only "c" as dir and the rest (a,b,d) as file.

« previous php.notes (#82553) next »