\n"; foreach($files as $index => $file_name) { if(substr($file_name, 0, 1) != "." && !in_array($file_name, $ignoreNames)) { $file_list .= "
  • $file_name
  • \n"; } } $file_list .= "\n"; closedir($dir); echo $file_list; ?>