Simply display youtube video in your site.Read the following steps to display youtube video in your site.
1)$youtubelink = "http://www.youtube.com/watch?v=tu_XJidrGLI";
2) $explode_url = explode("=",$youtubelink);
3)$get_val = $explode_url [1];
4)
<object width="425" height="350" data="http://www.youtube.com/v/<?php echo $get_val ;?>" type="application/x-shockwave-flash">
<param name="src" value="http://www.youtube.com/v/<?php echo $get_val ;?>" />
<param name="allowFullScreen" value="true" />
</object>
Finally you get the you tube video in your site. Enjoy cheers :)
1)$youtubelink = "http://www.youtube.com/watch?v=tu_XJidrGLI";
2) $explode_url = explode("=",$youtubelink);
3)$get_val = $explode_url [1];
4)
<object width="425" height="350" data="http://www.youtube.com/v/<?php echo $get_val ;?>" type="application/x-shockwave-flash">
<param name="src" value="http://www.youtube.com/v/<?php echo $get_val ;?>" />
<param name="allowFullScreen" value="true" />
</object>
Finally you get the you tube video in your site. Enjoy cheers :)
No comments:
Post a Comment