note 25471 added to function.is-dir
| From: | fontajos at phpeppershop dot com | Date: | Wed, 25 Sep 2002 00:30:54 +0000 |
| Subject: | note 25471 added to function.is-dir | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-37216@lists.php.net to get a copy of this message | ||
is_dir only worked, when I gave the name of the directory AND the path of the directory:
$dir_handle = opendir($path);
while ($fp = readdir($dir_handle)) {
if (is_dir($fp)) {echo "dir found!";} // worked only sometimes,
if (is_dir($path.$fp)) {echo "dir found!";} // always works.
}
--
http://www.php.net/manual/en/function.is-dir.php
http://master.php.net/manage/user-notes.php?action=edit+25471
http://master.php.net/manage/user-notes.php?action=delete+25471
http://master.php.net/manage/user-notes.php?action=reject+25471