Recursive File Search (PHP) -
I am trying to return files to a specified directory by using recursive search. I successfully achieved it, however I would like to add some lines which allow me to specify certain extensions, which I want to return.
For example, return .jpg files only to the directory.
This is my code,
& lt ;? Php $ it = new recurring directoryererator ("L: \ folder \ folder \ folder"); Foreign currency (new recursive iterator iterator ($$) as file $ {echo $ file " & quot; \ n"; }? & Gt;
Please tell me what I can add to the above code to get it, thanks
Comments
Post a Comment