
$dir = „/pliki/”;
if (is_dir($dir)) {
   if ($dh = opendir($dir)) {
       while (($file = readdir($dh)) !== false) {
           if($file==’.’ || $file==’..’) continue;
        $file_list .= $file.’”, „‘.$dir . $file.”\n”;
       }
       closedir($dh);
   }
   $file_list = substr($file_list, 1);
}
echo $file_list;
Strona zawiera sposoby oraz kody źródłowe pokazujące rozwiazanie napotkanych problemów