I think so, I'm not to familiar with PHP syntax (strpos,strpos) But the logic seems to work for me. Thanks! Regards/MiMa [!--quoteo(post=374230:date=May 16 2006, 04:12 AM:name=SemiApocalyptic)--][div class=\'quotetop\']QUOTE(SemiApocalyptic @ May 16 2006, 04:12 AM) [snapback]374230[/snapback][/div][div class=\'quotemain\'][!--quotec--] This method isn't properly recursive, but it will get what you want I think... [code]<?php $handle = opendir("home/user1/cat1/"); while (false !== ($file = readdir($handle))) { echo "$file<br/>"; if(!strpos($file,".")) { echo "<ul>"; foreach(glob("home/user1/cat1/$file/*.*") as $content) { echo "<li>$content</li>"; } echo "</ul>"; } } closedir($handle); ?>[/code] Untested, so you might need to tweak it a bit, but is that the kinda thing you wanted to do? [/quote]