Find SWF dimensions with PHP
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:
print_r(getimagesize('example.swf'));
// Outputs:
//
// Array ( [0] => 400 [1] => 300 [2] => 13 [3] => width=”400″ height=”300″ [mime] => application/x-shockwave-flash )
Tags: Flash and Actionscript, PHP
August 6th, 2009 at 3:06 am
I bookmarked this link. Thank you for good job!
August 6th, 2009 at 10:44 pm
Great post! Just wanted to let you know you have a new subscriber- me!
August 8th, 2009 at 9:29 pm
I love it! That is way cool man! The steps weren’t that complicated too, which is great.
August 19th, 2009 at 4:44 pm
Hmm… I read blogs on a similar topic, but i never visited your blog. I added it to favorites and i’ll be your constant reader.
August 23rd, 2009 at 11:48 pm
I liked it. So much useful material. I read with great interest.