ONJava.com -- The Independent Source for Enterprise Java
oreilly.comSafari Books Online.Conferences.


AddThis Social Bookmark Button
  Working with Files in PHP, Part 3
Subject:   dir class
Date:   2003-11-19 12:28:21
From:   anonymous2
Response to: dir class

BTW, the if(is_dir($mydir->path.$file)) part includes the .. and . "directories"... so if, like me, you just wish to display a list of sub-directories, you'll need to ignore those two entries:

if(is_dir($mydir->path.$file) && !strstr($file,".")) {

Great article BTW :-)

1 to 1 of 1
1 to 1 of 1