Sunday, February 22, 2009

Get width and height of a swf / flash file using php

You can use getimagesize() function to get width and height of a swf /flash file.
getimagesize() is also used to get size of images.
To find out supported formats and return values go to this link
http://www.php.net/getimagesize

Following code is a simple example on how to get the width and height of a swf file.


list($width, $height) = getimagesize("file_name.swf");

2 comments: