A simple script that formats the number ob bytes of a file to kb, mb, gb or tb. function mksize($bytes) { if ($bytes < 1000 * 1024) return number_format($bytes / 1024, 2) . " KB"; elseif ($bytes < 1000 * 1048576) return number_format($bytes /...