How to get the name of every folder in a directory?
Posted: Sat Aug 01, 2009 10:29 am
I was wondering if there is a php code which will get every name of every folder in a directory. For example.
Root directory/public_html/modules and inside modules there will be folders such as News, Menu, Shoutbox, Gallery etc etc. I want to get the name of each folder in the modules directory so I can put it in a select list.
Nevermins the directory I showed you it was just an example, I just need the code and I will modify it myself accordingly.
Cheers
insight
Root directory/public_html/modules and inside modules there will be folders such as News, Menu, Shoutbox, Gallery etc etc. I want to get the name of each folder in the modules directory so I can put it in a select list.
Nevermins the directory I showed you it was just an example, I just need the code and I will modify it myself accordingly.
Cheers
insight