<?php $g=glob("./txt/*.*"); for($i=0;$i<count( 6;g);$i++){ if(count($g)!=0)){ echo $g[$i]'<br/>'; }else{echo'Папка пуста';}} ?>
<? echo"test";