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;
$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
Notice: Undefined variable: tablica in C:\Teodor\projekt1\teodor\application\views\scripts\index\pokazdyskc.phtml on line 6