Hi guys
I’m trying to echo out a name of a video from an XML file but it doesn’t work. I’ve been stuck with this problem for a while. Can you see anything wrong here? I know there is a separate title tag in the XML but I’m just using this one for testing.
[php]<?php
$playlistxml = simplexml_load_file(‘http://gdata.youtube.com/feeds/api/playlists/196B7EBC0A622D67?v=2’);
foreach ($playlistxml->entry as $entry){
$media = $entry->children(‘media’, true);
echo $media->title;
}
?>
[/php]
Thanks