Re: [PHP] Recursive Directory Listing

2008-11-05 Thread Joe Schaeffer
>> I would say to do that with CSS, not building it into the output. That's actually how I've got things set up now -- I just rarely trust the house-of-cards that is nested lists in CSS (and I've gone and complicated things with first-child selectors all over the place)! Thanks, all, for the grea

Re: [PHP] Recursive Directory Listing

2008-11-04 Thread Joe Schaeffer
> Joe, > > Here is a simplified recursive version of your above statement. > > $dir = '.'; > function displayDir($dir='.') { >$show = FALSE; >$results = glob($dir.'/*'); >foreach ( $results AS $entry ) { >if ( is_dir($entry) && !in_array($entry, array('.', '

Re: [PHP] Recursive Directory Listing

2008-10-31 Thread Joe Schaeffer
i can't get a hasChildren() check to work properly. I'd appreciate any feedback. I've been referring to the SPL documentation in the manual off php.net, and the examples at phpro.org. if there are any others out there, i'd be happy to keep digging! On 10/30/08, Joche

Re: [PHP] Recursive Directory Listing

2008-10-30 Thread Joe Schaeffer
Again, thanks for the point in the right direction! On Thu, Oct 30, 2008 at 1:30 PM, Jochem Maas <[EMAIL PROTECTED]> wrote: > Joe Schaeffer schreef: >> New to PHP development, new to the list; searched the archives but >> didn't find an answer (or at least nothing i coul

[PHP] Recursive Directory Listing

2008-10-30 Thread Joe Schaeffer
New to PHP development, new to the list; searched the archives but didn't find an answer (or at least nothing i could successfully adapt). I have a (readable) directory structure like so: ../navigation /cats /dogs /beagles /collies /some/other/dirs/ /horses