Dynadot .com transfer sale, only $10.12 with coupon code DYNA12, available while supplies last, ends October 31, 2026.

[Php] Auto sensing a .swf dimensions.

Namecheap AuctionsNamecheap Auctions
Namecheap AuctionsNamecheap Auctions
SpaceshipSpaceship
Watch

Alex.

Account Closed
Impact
5
how can you auto sense the dims of a flash file using php, if at all?

i thought that on phpbb activity mods, you can import a swf file and it auto senses its dims.

is there a way to do it?
 
0
Close
The views expressed on this page by users and staff are their own, not those of NamePros.
GoDaddyGoDaddy
You can actually use the same function that gets properties of images files to do this:

http://uk2.php.net/getimagesize

The getimagesize() function will determine the size of any GIF, JPG, PNG, SWF, SWC, PSD, TIFF, BMP, IFF, JP2, JPX, JB2, JPC, XBM, or WBMP image file and return the dimensions along with the file type and a height/width text string to be used inside a normal HTML <IMG> tag.

So for example:

PHP:
<?php
list($width, $height, $type, $attr) = getimagesize('animation.swf');

// echo $width . ' x ' . $height;
?>


Matt

?>
 
0
Close
edit: Ah, I lose. ^
 
0
Close
thanks for your help!
 
0
Close
AIVikingsAIVikings

We're social

Escrow.com
Spaceship
CryptoExchange.com
Domain Recover

NamePros updates

Quick replies: search, your most used replies, and more on every post
Quick replies are easier to find and use now. The quick reply menu has a search box. Type a few letters to find the reply you want. A...
AIVikings
Catchy
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back