1024000) { $pdfs[$de][size] = round($pdfs[$de][stat][size] / 1024000, 1); $pdfs[$de][unit] = 'M'; } else if ($pdfs[$de][$mv[2]][stat][size] > 1024) { $pdfs[$de][size] = round($pdfs[$de][stat][size] / 1024, 0); $pdfs[$de][unit] = 'K'; } else { $pdfs[$de][size] = $pdfs[$de][stat][size]; $pdfs[$de][unit] = ''; } } } closedir($dh); } ?>