Results 1 to 3 of 3
10-23-2003, 01:08 PM #1aingaranGuest
Listing sub-directories in a directory.
Does anyone have a php solution for listing all the sub-directories in a directory.
IE, if you're in
and within /public_html/ you have
I'd like a script that extracts JUST THE DIRECTORY name, ie ("one", "two", "three" & "four") and put it in an array.
I've got scripts for files only, files & sub-directories, files, sub-directories & files within subdirectories and etc..
But, can not do just sub-directory names within a directory.
Help is appreciated.
10-26-2003, 12:40 PM #2wirelessguyGuest
Why don't you stroe into the array and get those values back. Also you can ge in recursive method.
10-26-2003, 08:58 PM #3x.c.Guest
use str_explode to split the string up into arrays and then take the last value, tahts the subdir-name