Can this function handle more then 2GB (or even more then 4GB)?
function format_bytes($bytes) {
>---if ($bytes >= 1073741824) {
>--->---return sprintf("%.2f GB", $bytes/1073741824);
>---} else if ($bytes >= 1048576) {
>--->---return sprintf("%.2f MB", $bytes/1048576);
>---} else if ($bytes >= 1024) {
>--->---return sprintf("%.0f KB", $bytes/1024);
>---} else {
>--->---return sprintf("%d bytes", $bytes);
>---}
}
--
Jonathan De Graeve
Network/System Administrator
Imelda vzw
Informatica Dienst
+32 15/50.52.98
jonathan dot de dot graeve at imelda dot be
---------
Always read the manual for the correct way to do things because the
number of incorrect ways to do things is almost infinite
--------- |