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: ,

5 Responses to “Find SWF dimensions with PHP”

  1. Zashkaser Says:

    I bookmarked this link. Thank you for good job!

  2. Sdanektir Says:

    Great post! Just wanted to let you know you have a new subscriber- me!

  3. VitalikGromovss Says:

    I love it! That is way cool man! The steps weren’t that complicated too, which is great.

  4. Arsento Says:

    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.

  5. Clemento Says:

    I liked it. So much useful material. I read with great interest.

Leave a Reply