only one Posted November 1, 2007 Share Posted November 1, 2007 Hi, I've been looking around and I can't seem to find a function that will allow me to open a folder and read all the folders inside it. Any help is apreciated, Thanks O1R. Quote Link to comment https://forums.phpfreaks.com/topic/75694-solved-find-all-folders/ Share on other sites More sharing options...
Orio Posted November 1, 2007 Share Posted November 1, 2007 Check out glob(), scandir(), opendir()+readdir(). With all of these you can get a list of the files in a certain folder, and then use is_dir() and is_file() to help you filter out what you want (dirs/files). Orio. Quote Link to comment https://forums.phpfreaks.com/topic/75694-solved-find-all-folders/#findComment-383029 Share on other sites More sharing options...
only one Posted November 1, 2007 Author Share Posted November 1, 2007 Thanks, helps allot. Quote Link to comment https://forums.phpfreaks.com/topic/75694-solved-find-all-folders/#findComment-383032 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.