shedokan Posted January 18, 2009 Share Posted January 18, 2009 I have this html object: <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="550" height="400"> <param name="menu" value="false" /> <param name="movie" value="http://www.website.com/loader.swf?url=pearldiver.swf&name=Pearl Diver&icon=%2Fimages%2Ficons%2Fpearldivermedicon.jpg&w=550&h=400" /> <param name="quality" value="high" /> <embed src="http://www.website.com/loader.swf?url=pearldiver.swf&name=Pearl Diver&icon=%2Fimages%2Ficons%2Fpearldivermedicon.jpg&w=550&h=400" menu="false" quality="high" width="550" height="400" name="miniclipGame" align="middle" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /> </object> and I would like in php to translate it to values like height width and src. what do you think I should use? thanks. Link to comment https://forums.phpfreaks.com/topic/141343-what-is-the-best-way-to-get-values-like-height-from-a-flash-objects-html/ Share on other sites More sharing options...
Flames Posted January 18, 2009 Share Posted January 18, 2009 the php replace functions? Link to comment https://forums.phpfreaks.com/topic/141343-what-is-the-best-way-to-get-values-like-height-from-a-flash-objects-html/#findComment-739835 Share on other sites More sharing options...
shedokan Posted January 20, 2009 Author Share Posted January 20, 2009 the problem with replace is becase it can be in different formats. Link to comment https://forums.phpfreaks.com/topic/141343-what-is-the-best-way-to-get-values-like-height-from-a-flash-objects-html/#findComment-741178 Share on other sites More sharing options...
redarrow Posted January 20, 2009 Share Posted January 20, 2009 preg_replace() Link to comment https://forums.phpfreaks.com/topic/141343-what-is-the-best-way-to-get-values-like-height-from-a-flash-objects-html/#findComment-741180 Share on other sites More sharing options...
shedokan Posted January 21, 2009 Author Share Posted January 21, 2009 yes but let's say I have a totaly different code, like <embed src="http://games.mochiads.com/c/g/super-d/superd1.swf" type="application/x-shockwave-flash" width="440" height="320"></embed> you can't use preg_replace anymore, because they are total different codes. Link to comment https://forums.phpfreaks.com/topic/141343-what-is-the-best-way-to-get-values-like-height-from-a-flash-objects-html/#findComment-741982 Share on other sites More sharing options...
Flames Posted January 25, 2009 Share Posted January 25, 2009 Make multiple functions then? And you can do stuff like height='(.*?)' or summit which makes it $1 etc Link to comment https://forums.phpfreaks.com/topic/141343-what-is-the-best-way-to-get-values-like-height-from-a-flash-objects-html/#findComment-745923 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.