note 25471 added to function.is-dir

From: 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

« previous php.notes (#37216) next »