Kirill
Kirill

Reputation: 43

How to get size from swf file?

I have dynamic pages with swf file inside 'object' tag, but swf files have not identical size. So for more crossbrowsing method i need to set size attributes for 'object'....here is the problem: i don`t know how to get size from swf and transmit it to php. Please help!

Upvotes: 1

Views: 2255

Answers (1)

Babiker
Babiker

Reputation: 18818

$media  = "media.swf";
$dem    = getimagesize($media);
$height = $dem[1];
$width  = $dem[0];

PHP's getimagesize() documentation.

Upvotes: 2

Related Questions