916 visitas
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);
- }
Enviado por miguelSantirso hace over 2 years — modificado por última vez hace less than a minute