匿名 #8694(2009/03/19 00:43 GMT) [ PHP ] Rating-1/1=-1.00
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
if(file_exists($filepath)){ $size = filesize($filepath); $unim = array("Bytes","KB","MB","GB","TB","PB"); $count=0; while($size >= 1024 ){ $count++; $size = $size/1024; } $size = round($size,2); echo $size.$unim[$count]; }else{ echo "not exists"; } }
Rating-1/1=-1.00-0+
[ reply ]
匿名
#8694()
[
PHP
]
Rating-1/1=-1.00
Rating-1/1=-1.00-0+
[ reply ]