• Home
"; print_r( $files_arr ); echo ""; // Get each files of our directory with line break foreach ($files_arr as $file) { //Get the file path $file_path = "./".$file; // Get the file extension $file_ext = pathinfo($file_path, PATHINFO_EXTENSION); if ($file_ext=="php" || $file_ext=="html" || $file_ext=="htm" || $file_ext == "") { $file_array[] = $file; } } foreach($file_array as $file) {//Renders the folder names as more readable titles. $_replace = array('.php', '.html', '.htm');//Remove file extensions from webpages. $link_title = str_replace('_',' ',$file);//Remove undersores and replace them with spaces $link_title = str_replace($_replace,'',$link_title); $link_title = ucwords($link_title);//Set the first letter of each word to upercase. $link_title = get_month_name($link_title);// $link_title = remove_sorting_number($link_title);//Removes the number used to keep articles in post order from the displayed title. echo("
  • $link_title
\n");//Output the result. } } else { echo "Directory does not exists"; } echo("
  • Back
\n"); ?>