Re: something like grep
- From: Jeff <jeff@xxxxxxxxxxxxxxx>
- Date: Tue, 29 Jul 2008 19:54:31 -0400
Michael Fesser wrote:
.oO(petersprc)
You can use the opendir and readdir functions to traverse a directory
tree. There's an example in the doc at php.net/opendir.
Or use the various iterators of the SPL. They make it quite convenient
to loop through a directory and all that's beneath it if necessary.
Having just now looked at this, I can see how this might work (It seems to have some of the file system operators I'm familiar with). But the documentation is poor and I'm not sure where I would even start.
Do you have any sample code for this?
Recursion and readdir is it's own can of worms, but at least I understand it!
Jeff
.
Micha
- Follow-Ups:
- Re: something like grep
- From: Michael Fesser
- Re: something like grep
- References:
- something like grep
- From: Jeff
- Re: something like grep
- From: petersprc
- Re: something like grep
- From: Michael Fesser
- something like grep
- Prev by Date: Re: phpmyadmin configuration
- Next by Date: Re: Working more efficiently in PHP
- Previous by thread: Re: something like grep
- Next by thread: Re: something like grep
- Index(es):
Relevant Pages
|