Poradziłem sobie inaczej
<?
$sciezkadokatalogu = "info/";
while (false !== ($plikitekstowe = readdir($f))) { if (eregi(".(txt)$",$plikitekstowe)) include("$sciezkadokatalogu$plikitekstowe"); }
?>
Natomiast w tej drugiej wersji bez kropki listuje mi pliki txt, ale mam komunikat cannot read file...
Dokładnie taki komunikat:
Warning: main() [
function.include]: Failed opening 'info/info/01l.txt' for inclusion (include_path='.:/:/usr/php/pear') in
/new/strony/new1.txt on line
3Warning: main() [
function.include]: Failed opening 'info/info/02l.txt' for inclusion (include_path='.:/:/usr/php/pear') in
/new/strony/new1.txt on line
3