开发者

How to get size from swf file?

开发者 https://www.devze.com 2023-02-01 06:21 出处:网络
I have dyn开发者_运维知识库amic pages with swf file inside \'object\' tag, but swf files have not identical size.

I have dyn开发者_运维知识库amic 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!


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

PHP's getimagesize() documentation.

0

精彩评论

暂无评论...
验证码 换一张
取 消