note 43186 added to function.is-dir
| From: | bobi27 at freemail dot hu | Date: | Sat, 12 Jun 2004 13:27:01 +0000 |
| Subject: | note 43186 added to function.is-dir | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-70972@lists.php.net to get a copy of this message | ||
Hi,
I had problems with checking the $file = readdir($handle) inside directories, whether its directory
or not, finally i figured out that u have to use the is_dir function this way:
...
$handle = opendir($path2)
...
is_dir($path."\\".$file)
It will work fine.
Bobi
----
Manual Page -- http://www.php.net/manual/en/function.is-dir.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+43186
Delete -- http://master.php.net/manage/user-notes.php?action=delete+43186&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+43186&report=yes
Search -- http://master.php.net/manage/user-notes.php