yea heres what ive got already
<table border="1" width="100%" cellspacing="0" cellpadding="0">
<tr>
<td width="42%">File Name</td>
<td width="16%">Size (Bytes)</td>
<td width="48%"> </td>
</tr>
<?
$path = "../images/";
$dir=opendir($path);
while ($file = readdir ($dir))
{
$size = filesize("../images/$file");//gets the file size
if ($file != "." && $file != ".." && eregi(".gif",$file) || eregi(".jpg",$file) )//checks the format (must be .gif or .jpg)
{
echo "<tr><td width=\"42%\"><a href=\"../images/$file\">$file</a></td>
<td width=\"16%\">$size</td>
<td width=\"48%\"><a href=\"deleteimage.php?filename=$file\">Delete</a></td></tr>";
}
}
closedir($dir);
?>
<tr>
<td width="42%">## Files</td>
<td width="16%">(total size here)<td>
<td width="48%"> </td>
</tr>
</table>