<? $dir = "/НАЗВАНИЕ ПАПКИ"; $folders = scandir($dir); for($i = 2; $i != sizeof($folders); $i++){ echo $folders[$a]."<br>"; } ?>