Location: PHPKode > projects > NetLink > netlink_os/File_Size.php
<?php
function File_Size($user,$file)
{
	$size=filesize("Users/$user/$file");
    if($size > 104876){
        $byte = sprintf("%01.2f",$size / 1048576)." Mb";
    }elseif($size > 1024){
        $byte = sprintf("%01.2f",$size / 1024)." Kb";
    }else{
        $byte = sprintf("%01.0f",$size)." Bytes";
    }
		return ($byte);
}
?>
Return current item: NetLink