The documentation for DirectoryIterator is sparse. I found this nice overview:
http://www.jellyandcustard.com/2006/05/18
/using-directoryiterator-to-list-files-in-php
(The above is one line, but I'm not allowed to post it like that)
![]() |
|
||||||||||
|
DirectoryIterator::__construct(no version information, might be only in CVS) DirectoryIterator::__construct -- Constructs a new dir iterator from a pathDescriptionDirectoryIterator DirectoryIterator::__construct ( string path )
DirectoryIterator::__construct
troels
03-Apr-2007 07:34
The documentation for DirectoryIterator is sparse. I found this nice overview:
springub at northclick dot de
13-Dec-2006 04:26
udvig dot ericson at gmail dot com
ludvig dot ericson at gmail dot com
28-Jul-2006 10:48
In response to the comment below, you don't have to simulate a foreach(), DirectoryIterator obviously inherits SPL's Iterator interface, therefore:
fernandobassani at gmail dot com
25-Jan-2006 10:36
We can now replace the old fashioned way of listing the content from a directory!
jakob dot buchgraber at gmail dot com
04-Jan-2006 07:36
I wrote a function for finding all files in the current and in subdirectories. |