Connecting Tech Pros Worldwide Help | Site Map

Getting remote SWF size

  #1  
Old September 27th, 2005, 08:45 PM
alex
Guest
 
Posts: n/a
Hi all,

I'd like to find the equivalent of the getimagesize() function for remote
swf files.
Do you how to do this ?

thanks in advance,

--
alex


  #2  
Old September 28th, 2005, 01:35 AM
Con
Guest
 
Posts: n/a

re: Getting remote SWF size


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

  #3  
Old September 28th, 2005, 07:05 AM
alex
Guest
 
Posts: n/a

re: Getting remote SWF size


"Con" <conradwt@gmail.com> a écrit dans le message de news:
1127867251.265007.236260@o13g2000cwo.googlegroups. com...[color=blue]
> 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
>[/color]

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


Closed Thread