本帖最后由 justmewei 于 2009-08-14 08:45:08 编辑

解决方案 »

  1.   

    这个你可以找下fxs_2008大哥,我记得他写过一个相似的类!
      

  2.   

    目录列表
    http://topic.csdn.net/u/20090813/18/523cca30-fd19-430e-8ef4-5f7bb11d6e87.html?58407自己修改下
      

  3.   


    if ($handle = opendir('D:/MYOA/')) {
        echo "Directory handle: $handle\n";
        echo "Files:\n";    /* 这是正确地遍历目录方法 */
        while (false !== ($file = readdir($handle))) {
            if ($file != "." && $file != "..") {
                echo "$file<br>";
            }    }
        closedir($handle);
    }
      

  4.   

     5楼这位大哥,谢谢你的代码,我试用过了,可以遍历所设定目录下的所有文件和文件夹,但是文件目录不可打开(点击+)和关闭(点击-)呀,需要怎么修改?刚开始接触PHP,还望多指教!