Walter Kempees
|
| Posted: 11/15/2004, 3:42 PM |
|
PhP:
function fsize($size) {
$a = array("b", "Kb", "Mb", "Gb", "Tb", "Pb");
while ($size >= 1024) {
$size /= 1024;
$pos++;
}
return round($size,2)." ".$a[$pos];
}
"viktor" <viktor@forum.codecharge> schreef in bericht
news:54187a319d4fcc@news.codecharge.com...
> Is there any "quick and dirty" way to show / output file size of the
> uploaded
> file in Kb instead of usual bytes.
>
> Thanks!
> ---------------------------------------
> Sent from YesSoftware forum
> http://forums.codecharge.com/
>
|