[tips] get swf flash dimension in php
hi all i faced a problem in one of my websites , the client upload various swf flash files with various dimension and i must embed the flash automatically by code
i found that getimagesize function work also with swf so i made it like that
i found that getimagesize function work also with swf so i made it like that
<?php
$file = "YOUR_FILE.swf";
$info = getimagesize($file);
$width = $info[0];
$height = $info[1];
print "{$width}x{$height}\n";
?>
0 Responses to "[tips] get swf flash dimension in php"
Post a Comment