<?php $dir=opendir("."); while ($d = readdir($dir)) if (is_file($d)) echo "<a href=\"$d\">$d</a> ".@filesize($d)."<br>"; ?>