PHP 文件

1.獲取文件列表svn

 $dir = APPLICATION_PATH.'/modules/shipment/views/template';        $handle = opendir($dir);        $path_arr = array();        if($handle){            while (($fl = readdir($handle)) != false){                $temp = $dir.DIRECTORY_SEPARATOR.$fl;                //若是不加  $fl!='.' && $fl != '..'  則會形成把$dir的父級目錄也讀取出來                if(!in_array($fl,array('.','..','.svn'))){                    $path_info = pathinfo($fl);                    $path_arr[] = $path_info['filename'];                }            }        }
相關文章
相關標籤/搜索