- opendir: documentation ( source)
- readdir: documentation ( source)
- filesize: documentation ( source)
- filetype: documentation ( source)
<?php
$dh = opendir("");
while($filename = readdir($dh))
{
// любые операции с вашим файлом, например
$fs = filesize($filename);
$ft = filetype($filename);
echo "Имя: ".$filename."\nРазмер: ".$fs."\nТип:".$ft;
}
?>