note 18534 added to function.opendir
| From: | sbesselsen at exed dot nl | Date: | Sat, 26 Jan 2002 19:14:10 +0000 |
| Subject: | note 18534 added to function.opendir | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-25856@lists.php.net to get a copy of this message | ||
To remove the . and .., do this:
$dir = opendir("thisdir");
while($item = readdir($dir)){
if($item=="." or $item=="..") continue;
[...]
}
--
http://www.php.net/manual/en/function.opendir.php
http://master.php.net/manage/user-notes.php?action=edit+18534
http://master.php.net/manage/user-notes.php?action=delete+18534
http://master.php.net/manage/user-notes.php?action=reject+18534