|
Posted by alex on 09/28/05 08:55
"Con" <conradwt@gmail.com> a ιcrit dans le message de news:
1127867251.265007.236260@o13g2000cwo.googlegroups.com...
> Hi, it seems that you should be able to use the following function:
>
> int filesize ( string filename );
>
> Also, you can use the following:
>
> <?php
> function human_file_size($size)
> {
> $filesizename = array(" Bytes", " KB", " MB", " GB", " TB", " PB", "
> EB", " ZB", " YB");
> return round($size/pow(1024, ($i = floor(log($size, 1024)))), 2) .
> $filesizename[$i];
> }
> ?>
>
> BTW, the above code comes from the php.net.
>
> Peace,
>
> -Conrad
>
well... err. GetImageSize gives the width & height of a local or remote
image.
That's what I'd like to get from a remote flash movie.
--
alex
Navigation:
[Reply to this message]
|