Re: something like grep
- From: petersprc <petersprc@xxxxxxxxx>
- Date: Tue, 29 Jul 2008 14:01:09 -0700 (PDT)
Hi,
You can use the opendir and readdir functions to traverse a directory
tree. There's an example in the doc at php.net/opendir.
If you want to do a text search within a directory tree, you can use
the egrep shell command with the -r (recursive) option on most
linuxes.
Regards,
John Peters
On Jul 29, 4:47 pm, Jeff <jeff@xxxxxxxxxxxxxxx> wrote:
I'd like to open a directory and spider all the subdirectories and files.
What is the php term for doing this?
Seems like it should be here:
http://us3.php.net/manual/en/ref.filesystem.php
Perhaps I'm just having a bad day!
Jeff
.
- Follow-Ups:
- Re: something like grep
- From: Michael Fesser
- Re: something like grep
- References:
- something like grep
- From: Jeff
- something like grep
- Prev by Date: something like grep
- Next by Date: Re: Probably very easy to do, but for some reason...
- Previous by thread: something like grep
- Next by thread: Re: something like grep
- Index(es):
Relevant Pages
|