あのAAどこ?TOPへ

(.*?)<\/title>/i", $html, $matches) ) { return $matches[1]; } else { return false; } } function getPagename($dir){ $res_dir = opendir($dir); $i = 0 ; while( $file_name = readdir( $res_dir ) ){ if(preg_match('/^\./', $file_name)){continue; } if($file_name == 'index.html'){continue; } $pagename[$i] = "$dir/" . $file_name ; $i++; } rsort($pagename); foreach($pagename as $key){ echo $dir . '/' . substr($key,5,2) . '/' . substr($key,7,2) . ' ' . getPageTitle("$key") . '
'; } } getPagename($dir); echo ''; echo '';