DeadLy on 01/18/08
Last Edited at 01/18/08 02:23am
function file_size($size){ $filesizename = array(" Bytes", " KB", " MB", " GB", " TB", " PB", " EB", " ZB", " YB"); return $size ? round($size/pow(1024, ($i = floor(log($size, 1024)))), 2) . $filesizename[$i] : '0 Bytes';}
Report this snippet Tweet
Comment:
You need to login to post a comment.