$current_dir = "."; $dir[0]= opendir($current_dir); $i=0; while ($dir_name = readdir($dir[0])){ if (($dir_name != ".") && ($dir_name !="..") && eregi("(19|20)([0-9]{4})(.+)" ,$dir_name)){ //$name_temp = preg_replace("/(19|20)(\d{2})(\d{2})(\d{2})_(.+)/","\\5 \\4-\\3-\\1\\2",$dir_name); //echo "
. |