Hey, how about next to the link of an attached file, how about the size of the file? Something like...
I know you could have figured it out your self, but i thought if i did it, you would be more inclined to add it to the page.PHP Code:<?
$Size = filesize(File_Name);
$Type = "bytes";
if($Size > 1024)
{$Size = $Size / 1024; $Type = "kb";}
if($Size > 1024)
{$Size = $Size / 1024; $Type = "mb";}
$Size = round($Size, 1);
print "$Size $Type";
?>




Reply With Quote