Perad Posted February 17, 2008 Share Posted February 17, 2008 I am looking for a short explanation or perhaps a link to a good place to begin. Many CMS are using a module system where you upload a folder and these modules automatically display on a file. What do I need to use to find folders and files in another folder? To read the files would I need to include them in my script or is there some way to read the file another way? Quote Link to comment https://forums.phpfreaks.com/topic/91509-list-modules/ Share on other sites More sharing options...
Daniel0 Posted February 17, 2008 Share Posted February 17, 2008 You could use scandir() or the DirectoryIterator object in the SPL to find get the files in the folder. Whether you need to include them or not depends on how you've designed your code. Quote Link to comment https://forums.phpfreaks.com/topic/91509-list-modules/#findComment-468731 Share on other sites More sharing options...
Perad Posted February 17, 2008 Author Share Posted February 17, 2008 Could you tell me what the '.' and '..' that are returned in the array? Quote Link to comment https://forums.phpfreaks.com/topic/91509-list-modules/#findComment-468779 Share on other sites More sharing options...
Daniel0 Posted February 17, 2008 Share Posted February 17, 2008 . means the current directory and .. means the parent directory. Quote Link to comment https://forums.phpfreaks.com/topic/91509-list-modules/#findComment-468788 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.