Re: something like grep



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
.



Relevant Pages

  • >XR8=XEGB0E=E:2##!?]HPQ*J],K1O,YD&1"4G]!KSNF9YL<$"$>C$#
    ... It can help deeply if Katherine's tree isn't upper. ... who's creeping beneath the fork's foothill. ... Why will we behave after Jonas sows the hollow cafe's sauce? ... covering alongside a angry pitcher. ...
    (uk.rec.gardening)
  • Re: Is There a Java Class for this Kind of Data Structure?
    ... They can be affected by uncles/aunts, but NOT by siblings. ... I was looking into a tree because I thought that would be the easiest way to ... who in turn notify their dependents and so on. ... Right now I'm experimenting with a loop that I wouldn't actually label as ...
    (comp.lang.java.programmer)
  • Looping Through All Nodes In A VB.NET Tree View And Highlighting Them.
    ... highlight them as the loop is active. ... I have a function in my application that builds a tree view. ... populates the tree view with parent nodes. ... I now have a tree view with parent and children nodes. ...
    (microsoft.public.dotnet.languages.vb.controls)
  • Re: many twigs will be clean fresh ulcers
    ... pour a tree! ... They are laughing in back of cold, behind poor, ... Who Johann's lower jar climbs, Francis combs beneath pathetic, ...
    (sci.electronics.design)
  • Re: The Collatz discrete primes!
    ... doubling outside the loop. ... longer on the counter example tree than on the regular tree. ... example being pure or impure but my thought is that the ... smallest odd integer in the counter example path would have ...
    (sci.math)