display filesize

Nicely displaying the filesize, using bytes, megabytes, etc..

= 1024) { 
     $size /= 1024; 
     $pos++; 
   }
  return round($size,1)." ".$type[$pos];
}
?>