Chris Hobbs wrote:
> $dirList = $dirList + getDirList($dirName."/".$entry);
OK, on a lark I changed the above to use array_merge, and the problem
went away - that'll teach me to use a shortcut :)
--
___ ____ _
Chris Hobbs / \ \
I'm attempting to build an array of filenames in a sub-directory with
sub-directories. I'm using a modified version of code found on php.net -
the function I wrote is here:
function getDirList ($dirName) {
$dirList=array();
$d = dir($dirName);
while ($entry = $d->read()) {
2 matches
Mail list logo