How to read XML from YouTube? I tried the following.
$xml = new XMLReader();
$xml->open('http://gdata.youtube.com/feeds/api/videos/1uwOL4rB-go');
$r = array();
while($xml->read()) {
$r[] = array($xml->name => $xml->value);
}
I got this far, but he does not get the necessary information that I need, like the duration of the video.
source
share