![]() |
![]() ![]() |
![]() |
![]()
Post
#1
|
|
Grupa: Zarejestrowani Postów: 2 Pomógł: 0 Dołączył: 9.09.2010 Ostrzeżenie: (0%) ![]() ![]() |
Chciałbym odczytać zawartość dysku C do tablicy, a nastepnie pokazać go na ekranie za pomocą echo.
Znalazlem narazie taki skrypt, ale mam probemy z jego uruchomieniem Cytat $directory="../../../../Teodor"; $dir=opendir($directory); $file_list="<UL>"; while($file_name=readdir($dir)) { if(($file_name!=".")&&($file_name!="..")) { $file_list.="<LI>$file_name"; } } $file_list.="</UL>"; closedir($dir); $this->view->sciezka=$directory; $this->view->tablica=$file_list; Wyskakują mi takie błędy: Cytat Notice: Undefined variable: sciezka in C:\Teodor\projekt1\teodor\application\views\scripts\index\pokazdyskc.phtml on line 4
Notice: Undefined variable: tablica in C:\Teodor\projekt1\teodor\application\views\scripts\index\pokazdyskc.phtml on line 6 |
|
|
![]()
Post
#2
|
|
Grupa: Zarejestrowani Postów: 31 Pomógł: 5 Dołączył: 7.05.2010 Ostrzeżenie: (0%) ![]() ![]() |
-------------------- -------------------------------------------------------------------------
My blog |
|
|
![]() ![]() |
![]() |
Wersja Lo-Fi | Aktualny czas: 14.08.2025 - 09:01 |