Devam Ediyor

524492 Parse youtube xml result in Php

This code snipet pulls a xml list of videos for a use:

// Set youtube user


$xml=simplexml_load_string(file_get_content('[url removed, login to view]$youtube_user/uploads'));

I want to parse the result into html output:

// Get total video count for this user.

// Get description, title & v= from <media:player url

<media:description type='plain'> part 1 to create the page showing the news.</media:description>

<media:player url='[url removed, login to view]'/>

<media:title type='plain'>PHP Tutorials: Reading an RSS Feed [part 02]</media:title>

//How many videos to display on screen


for($i = 0; $i<$howmany; $i++){

// extract: title from: <media:title type='plain'>

// extract: description from: <media:description type='plain'>

// extract $v=" "; from: <media:player url='[url removed, login to view]'/>

// print into <iframe template below.

print "<p>.$media:title[0][$i]."<br>".$media:description[0][$i]."<br>

<iframe width=\"400\" height=\"300\" src=\"[url removed, login to view]".$v[0][$i]."?hl=en&fs=1\"

frameborder=\"0\" allowfullscreen></iframe></p>";


Beceriler: Her şey Kabul, PHP, Şablonlar, XML, YouTube

Daha fazlasını görün: xml youtube, tutorials template, template tutorials, set tutorials, create youtube rss feed, youtube v, video br, youtube api html, extract video, iframe youtube api, youtube feeds, youtube php code, rss video player, news rss api, iframe video, php news feed, video youtube api, php url api, rss output, display xml api html, html youtube, html xml api, create youtube player, youtube iframe player, php video tutorials

İşveren Hakkında:
( 9 değerlendirme )

Proje NO: #2270431



Demo in PMB - please check

0 gün içinde 40$ USD
(71 Değerlendirme)