Wow, so it’s been a long time since I posted here. It’s quite alarming to think how much has happened since March 2008! Hopefully I’ll start posting here more often again, more as a written record of things I’ve found useful that will benefit me. With that in mind, here’s something that came up today. It’s a very simple thing, but I’m going to find it very useful in developing the banner section of Biff’s portfolio site.
It is possible to find the dimensions of a SWF using PHP’s getimagesize() function. Here’s an example:
1 2 3 |
print_r(getimagesize('example.swf')); // Outputs: // Array ( [0] => 400 [1] => 300 [2] => 13 [3] => width=”400″ height=”300″ [mime] => application/x-shockwave-flash ) |