<?php if($file != '.' && $file !='..') { $the_array[]=$file; } } } ?>
chce, aby wyświetlał tylko pliki z rozszeżeniem *.zip.
Jak to zrobić


<?php if($file != '.' && $file !='..') { $the_array[]=$file; } } } ?>
<?php { { $the_array[] = $file; } } foreach( $the_array as $file ) { } ?>
<?php ?>
<?php { { $the_array[] = $file; } } foreach( $the_array as $file ) { } ?>
<?php <table> <tr> <td>w tej części ma generować menu czyli cos na podobe kodu powyzej</td> <td>tuutaj ma wyświetlać zawartość pliku</td> </tr> </table> ?>
<? foreach( $aFiles as $sFile ) { echo '<a href="' . $sFile . '">' . str_replace( '_', ' ', urldecode( substr( $sFile2, 0, strrpos( $sFile2, '.' ) - 1 ) ) ). '</a>'; } ?>