Re: [PHP] Problem recursively building array

2001-09-26 Thread Chris Hobbs
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 / \ \

[PHP] Problem recursively building array

2001-09-26 Thread 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()) {