Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
Simple PHP to find SWF dimensions
Old 11-18-2008, 06:48 PM Simple PHP to find SWF dimensions
Novice Talker

Posts: 7
Trades: 0
Hey everyone, I hope someone could help me. I have been trying to find a way or a program to just tell me the dimensions of an .swf flash file, but everyone has been telling me it's simple with PHP.

Since I don't know any coding, I was wondering if someone could help me. People have been saying that I just need a few lines of code and once i plug in the .swf URL, it will tell me the dimensions. If there's a script that could do that when I visit a "special URL", that would be great.

Thanks in advance!

-Joan
__________________
This free flash arcade is a
Please login or register to view this content. Registration is FREE
arcade site for everyone to enjoy!
joan626 is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 11-19-2008, 03:24 AM Re: Simple PHP to find SWF dimensions
mtishetsky's Avatar
King Spam Talker

Posts: 1,226
Name: Mike
Location: Mataro, Spain
Trades: 0
URL? This may work on local files only, but I hope that if fopen_wrappers on your hosting are allowed than you will be able to get the info for remote file over HTTP.

$info = getimagesize($path_or_url);
list($width, $height) = $info;
__________________

Please login or register to view this content. Registration is FREE
-
Please login or register to view this content. Registration is FREE
-
Please login or register to view this content. Registration is FREE

And don't forget to give me talkupation!
mtishetsky is offline
Reply With Quote
View Public Profile Visit mtishetsky's homepage!
 
Old 11-19-2008, 04:06 AM Re: Simple PHP to find SWF dimensions
tripy's Avatar
Do not try this at home!

Posts: 3,621
Name: Thierry
Location: I'm the uber Spaminator !
Trades: 0
In the past, I had problem using getimagesize() with certains flash files.
Some of them could not be parsed (I believe it was a problem due to a flash compression method not handled by PHP).
To be able to get those values all the time, I had to make a system call to a program named swfdump.

http://www.swftools.org/swfdump.html
__________________
Only a biker knows why a dog sticks his head out the window.
tripy is offline
Reply With Quote
View Public Profile Visit tripy's homepage!
 
Reply     « Reply to Simple PHP to find SWF dimensions
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.24553 seconds with 12 queries