Does anybody know how to traverse a specified folder for all subfolders and files, I am tryying to create a config file based on all files located within a specified folder.
Thanks
The [blue]glob()[/blue] function.
Or the [blue]opendir()[/blue] function.
and [blue]readdir()[/blue] function
You can Open the dir and go through the files using readdir adding them to an array if they are files, or checking if they are Directories and if they are, you go through those directories recursively.
To check you can use the [blue]isdir()[/blue] function.
.
----------------------------------
Ignorance is not necessarily Bliss, case in point:
Unknown has caused an Unknown Error on Unknown and must be shutdown to prevent damage to Unknown.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.