Including a youtube video on a PHP website

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
pure_ali
Forum Newbie
Posts: 1
Joined: Mon Mar 10, 2008 2:45 am

Including a youtube video on a PHP website

Post by pure_ali »

dear ALL:

can any buddy help me how to add a you tube video video on a personal php page.

what i have done :

<object width="253" height="211"><param name="movie" value="http://www.youtube.com/v/<? echo $row["video"];?>"></param><param name="wmode" value="transparent"></param><embed src="http://www.youtube.com/v/<? echo $row["video"];?>" type="application/x-shockwave-flash" wmode="transparent" width="253" height="211"></embed></object>

but this can only help me with the video .... i want the description of the video from the orignial video .....


can any buddy help me in this regard ?????
User avatar
Sekka
Forum Commoner
Posts: 91
Joined: Mon Feb 18, 2008 10:25 am
Location: Huddersfield, West Yorkshire, UK

Re: Including a youtube video on a PHP website

Post by Sekka »

The video is all you can embed from YouTube. You can't dynamically embed the description too.

You will need to copy the description separately and store it with the video code.
Post Reply