Тема: readdir
Показать сообщение отдельно

  #7  
Старый 08.01.2009, 21:24
barnaki
Познающий
Регистрация: 02.11.2008
Сообщений: 87
Провел на форуме:
93223

Репутация: 14
По умолчанию

я написал так но все пишет :
Warning: scandir(/html) [function.scandir]: failed to open dir: No error in C:\php_files\home\banderas\site_gosti\php\show_boo ks.php on line 38

Warning: scandir() [function.scandir]: (errno 0): No error in C:\php_files\home\banderas\site_gosti\php\show_boo ks.php on line 38


$dir = opendir("../books");
while(($file = readdir($dir)) !== false )

{


echo "$file<br />";
if ($file != '.' || $file != '..' ) {
$files = scandir($file) ;
echo "<pre>";
print_r($files);
echo "</pre>"; }



}

closedir($dir);
 
Ответить с цитированием