Devam Ediyor

524492 Parse youtube xml result in Php

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

// Set youtube user

$youtube_user="betterphp";

$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

$howmany=6;

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: youtube parse, xml youtube, php parse youtube user feed, tutorials template, template tutorials, set tutorials, how to get on youtube youtube, create youtube rss feed, youtube-api, youtube v, youtube player, youtube api, video br, parse, parse html, parse an html, www youtube com watch, youtube api html, extract video, https xml, iframe youtube api, youtube feeds, youtube php code, rss video player, https youtube video

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

Proje NO: #2270431

Seçilen:

flaxweb

Demo in PMB - please check

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