this code will help you to list all files names at its dictionary, it will help you somehow 😉 .

<?php
foreach (glob("*.*") as $filename) {
    echo "$filename size " . filesize($filename) . "\n";
}
?>