At 3:39 PM -0700 7/24/01, Bob Scott wrote:
>There's a nifty little function called filesize()...
>
>I've done this before to make human-readable output:
>
>$my_file = "/path/to/my/file";
>
>$file_size = filesize($my_file);
>
>if ($file_size >= 1073741824) {
> $show_filesize = number_format
There's a nifty little function called filesize()...
I've done this before to make human-readable output:
$my_file = "/path/to/my/file";
$file_size = filesize($my_file);
if ($file_size >= 1073741824) {
$show_filesize = number_format(($file_size / 1073741824),2) . "
GB";
} elseif ($file
2 matches
Mail list logo