scvinodkumar Posted August 14, 2009 Share Posted August 14, 2009 For example, i have embed code(youtube), now i need to change the width and height of the embed code. Please help me Link to comment https://forums.phpfreaks.com/topic/170248-how-to-change-all-their-widthsheights-of-video-embed-codes/ Share on other sites More sharing options...
smerny Posted August 14, 2009 Share Posted August 14, 2009 copy the code and paste into something you can edit it in, you'll see dimensions, just change them Link to comment https://forums.phpfreaks.com/topic/170248-how-to-change-all-their-widthsheights-of-video-embed-codes/#findComment-898048 Share on other sites More sharing options...
scvinodkumar Posted August 14, 2009 Author Share Posted August 14, 2009 sorry, its comes from the database. Link to comment https://forums.phpfreaks.com/topic/170248-how-to-change-all-their-widthsheights-of-video-embed-codes/#findComment-898049 Share on other sites More sharing options...
smerny Posted August 14, 2009 Share Posted August 14, 2009 <object width="425" height="344"><param name="movie" value="http://www.youtube.com/watch?v=p-bY92mcOdk&hl=en&fs=1&"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/watch?v=p-bY92mcOdk&hl=en&fs=1&" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="344"></embed></object> You'll want to change all the red stuff, if you mean that you are pulling the embed code as text from the database, you'll need to use regex code to find and replace those things... I'm not good with regex, but here is the help forum for that: http://www.phpfreaks.com/forums/index.php/board,43.0.html Link to comment https://forums.phpfreaks.com/topic/170248-how-to-change-all-their-widthsheights-of-video-embed-codes/#findComment-898051 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.