
26.12.2007, 21:16
|
|
Новичок
Регистрация: 20.01.2007
Сообщений: 23
Провел на форуме: 228685
Репутация:
8
|
|
2Raven666
Попробуй:
<?
$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('upload/'.$file) / 1000) ." байт <br>";
}
}
closedir($handle);
}
?>
|
|
|