Getting remote SWF size

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View
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,


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:

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) .

BTW, the above code comes from the



Re: Getting remote SWF size
Quoted text here. Click to load it

well... err. GetImageSize gives the width & height of a local or remote
That's what I'd like to get from a remote flash movie.


Site Timeline