Convert from Bytes to KB, MB, GB, TB, PB, EB, ZB, YB.
require 'byte_convert.php';
// Get file size in bytes.
$file_size = filesize('/path/to/music/dj-zoso.mp3');
// Print the size in a human readable unit.
printf('File size: %s', byte_convert($file_size));