Second actually. Thanks for the answer Jason, John Raditha Dissanayake wrote:
> Hi John, > This is the third or fourth thread on this topic that you have started. > As jason has pointed out you need to start reading. While people in > this list will be happy to help you overcome specific problems no one > has the time to code for you. > > John Taylor-Johnston wrote: > > >Can anyone give me a heads up on how to recurse for sub-directories please? What > >function can I use? > >I'm still kind of new at this, > >John > > > > > > > > > >>1) set $which_one to the directory you want to search. > >>2) create a recursive funtion (many on php.net) to get all subdirectories > >>under it and build an array with their paths as the elements. > >>3) now, take that arrary and add a foreach before the line "$directory = > >>opendir($which_one);" replacing "$which_one" with your foreach array > >>element. > >> > >> > >> -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php