412 views
How to get the dimensions of a .swf file in PHP
You may think that it is quite hard do get the width and height of a .swf file using PHP. However, it is extremely easy using the getimagesize function.
PHP
- if($imageSize)
- {
- $width = $swfDimensions[0];
- $height = $swfDimensions[1];
- }
- else
- {
- throw new Exception("It has been imposible to retrieve the dimensions of the swf file ".$pathToSwf);
- }
Submitted by miguelSantirso 12 months ago — last modified less than a minute ago