![]() |
![]() |
![]()
Post
#1
|
|
Grupa: Zarejestrowani Postów: 21 Pomógł: 0 Dołączył: 4.11.2007 Ostrzeżenie: (0%) ![]() ![]() |
Co muszę zmienić w tym kodzie, aby wyświetlało nazwy plików bez rozszerzenia?
Kod <?php
define('F_DIR','./'); $dir=opendir(F_DIR); $file_list="<UL>"; while($file_name=readdir($dir)) { if(($file_name!=".")&&($file_name!="..") && end(explode('.',$file_name)) == 'txt') { $file_list.="<LI><a href=\"".F_DIR. $filename."\">$file_name</a>"; } } $file_list.="</UL>"; closedir($dir); echo "$file_list"; ?> |
|
|
![]() |
![]()
Post
#2
|
|
Grupa: Zarejestrowani Postów: 2 291 Pomógł: 156 Dołączył: 23.09.2007 Skąd: ITALY-MILAN Ostrzeżenie: (10%) ![]() ![]() |
nmzc po to jest forum mi tez inni pomagaja (IMG:http://forum.php.pl/style_emoticons/default/biggrin.gif)
|
|
|
![]() ![]() |
![]() |
Aktualny czas: 3.10.2025 - 00:35 |