Показать сообщение отдельно

  #1355  
Старый 26.12.2007, 14:32
Macro
Постоянный
Регистрация: 11.11.2006
Сообщений: 595
Провел на форуме:
1845062

Репутация: 1079


По умолчанию

Потому что $_FILES это подмассив массива $_POST

Код исправь на такой:
PHP код:
<?php 
$images 
'<img src="upload_file.gif" />'
if (
$handle opendir('w:/www/upload')) { 
    while (
false !== ($file readdir($handle))) {  
        if( 
$file != "." and $file != ".." and $file != "Thumbs.db" and $file != ".htaccess" and $file != "index.php") {  
            echo 
"".($images)."  <a href=/upload/$file>$file</a> ". (filesize($file) / 1000) ." байт <br>"
        }  
    } 
    
closedir($handle);  

?>
 
Ответить с цитированием