View Full Version : [Resolved] Finding Flash Video Size with PHP

11-03-2006, 09:16 PM

Is there a way to find the frame size of a SWF file using PHP? I'd like to be able to feed my PHP script a SWF video, (or the filename of that video), and have it retrieve the height & width of the video, (other info might be cool too but not essential).

I was looking around at the PHP website and found the Ming extension and the libswf module but they appear to be for creating flash, not finding more about it. Also, they both need to be installed with PHP, and the PHP installation I have been given to work with for this project doesn't have either one installed.

Any tips, techniques, or pointers would be great. Thanks in advance,


11-03-2006, 11:40 PM
I think I found a solution:
PHP's getimagesize (http://ca3.php.net/manual/en/function.getimagesize.php) function is able, (according to the documentation), to tell the size of a SWF.

Thanks a lot.