$dirs = scandir('fotomappen'); $mappen = array_reverse($dirs); foreach ($mappen as $dirs){ if (strtolower(substr($dirs,0,1)) != '-' and $dirs != '.' and $dirs != '..' and $dirs != '_notes'){ echo '
'.substr($dirs,(strpos($dirs,' '))).'
'; } } ?>