As we know the function getimagesize() works very good for images and swf files.
But it doesn't support shockwave file (.dcr).
SO, how can I get the width and the height of such file..
I am not Lingo/Director expert, but AFAIK you won't be able to do this from PHP.
.DCR file format is not open so you won't find file format specification for you to make your own parser and extract that info on your own.
However, there should be way to do this using director movie on client side.
Eg. You load external dcr file inside your own director movie (then you will be able to read width/height etc of loaded file). Your own director movie then updates some database with info on that specific loaded file so you can show width/height later on.
I've found this artice dating back to 2006 where this guy suggests the same thing: http://director-online.com/forums/read.php?1,20621,20621,quote=1
Good luck mate! :)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With