Hi, I have an arcade site, and you have to manually put in the height and width of each game, which typically is a swf file. Do you know of any common methods in php that can be used to auto-size these games? I am using avarcade script. If i'm in the wrong place please forgive me, as most of the script is written in php. Thanks, Skillz
FFMPEG-PHP *MIGHT* be able to do this, but you'll need a dedicated server. Or just pull the width and height from the database and: <object width="'.$width.'" height="'.$height.'"> <param name="movie" value="'.$file.'"> <embed src="'.$file.'" width="'.$width.'" height="'.$height.'"> </embed> </object> Code (markup):
however if your allowing members to link to a swf file make sure that you filter it so that they can not insert the height and width for insert
Yeah but some might upload files larger than your web design, that's the only problem with that unfortunately.