This code functions and will give you the results i'm seeing if you want to copy and paste $tree_array = getDirectory("."); echo "<pre>"; print_r($tree_array); echo "</pre>"; function getDirectory( $path = '.', $level = 0,$tree_array = array()){ // Directories to ignore...
Nope, that still gives the same result only showing the 1st level directories.....If I echo the array with each iteration I can see that it appears to be resetting the array somewhat. You'll see it shows the subdirectories of the includes directory and then in the next iteration it only shows the in...
This is what the inline echo statement outputs (which is displayed the way that I'm trying to get the array structure to be): ./ftp ./ftp/ftp_log ./images ./images/makethis ./images/animated_this ./images/animated ./ftp_src ./includes ./includes/functions ./includes/fish ./includes/classes ./include...
I'm trying to hack this script to return an array with a full directory listing that includes nested directories. I'm trying to make it return only the directories with no file names. As I have it now it only returns the 1st level directories. I'm sure that I'm missing something really simple but I'...