the $catch[] array
Array ( [0] => TamaFura [1] => download [2] => funpics [3] => movies [4] => pics [5] => stories )
it's generated with this code
if ( $dh = opendir($nav_file))
{
while ( false !== ( $file = readdir($dh) ) )
{if ( strpos($file, '.')===false && $file != '.' && $file != '..' && $file !='heart' && $file != "$ex_dir1" && $file !="$ex_dir2" && $file !="$ex_dir3" && $file !="$ex_dir4" && $file !="$ex_dir5") $catch[] = $file; }
}
rewinddir($dh);
closedir($dh);
so, the array $catch[] contains directory names
I want each $catch[0][], $catch[1][], $catch[2][]
to contain the subdirectories of each alredy listed directory
except with the code from the first post, where i use $catch[$r][]=$file
i tried with $$catch[$r][] in order to make new arrays each with the name with dir, but still get error, this time "Fatal error: Cannot use [] for reading"
in short: i want to get the structure of directory and all sub-directories of that directory in one array
the dir names from the main directory in $catch[]
and the dir names of each sub-directory in $catch[key][]
thank you