/ Published in: PHP
Use: echo format_size(filesize("fichier"));
Example result: 13,37 Ko
Example result: 13,37 Ko
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
<?php /* Use : echo format_size(filesize("fichier")); Example result : 13,37 Ko */ function format_size($o) { foreach ($size as $k => $v) if ($o >= $v) { if ($k == 'octets') } } ?>