I want to show the size of the file in KBytes or MBytes.
How can I do ?
Thanks
$inKBytes = ($userfile_size / 1024); $inMBytes = ($userfile_size / 1048576);
... or something to that affect.
-- Rich
Or,
$sizekb = floor(filesize($file) / 1024); $sizemb = floor($sizekb / 1024);