xpath youtube rss

Status
Niet open voor verdere reacties.
is het dit wat je zoekt

PHP:
<?php
    $url = "https://gdata.youtube.com/feeds/api/videos?author=ESPN";  
    $source = simpleXML_load_file($url);
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <title>RSS feed</title>
        <style type="text/css">
<!--

.item fieldset{height:500px; width: 500px;margin:7px 7px 7px 7px;overflow: hidden;background:#ffeeaa;}
.item{display:inline-block;
			vertical-align:top;text-decoration: none; border: none;min-width: 200px;
}
-->
</style>
    </head>
    <body>
            <div>
            
                <?php
                foreach ($source->entry as $object) {
                    print '<div class="item"><fieldset>';
                    print (string)$object->id ."</br></br>";
                    print (string)$object->titel ."</br></br>";
                    print (string)$object->content."</br></br><pre>";
                    print_r( $object);//deze dient u te verwijderen zie doc wat er gebeurt samen met htmltag <pre>
                    print '</pre></fieldset></div class="item">';
                } ?>
               
            </div>

    </body>
</html>

ps als je ooit iemand zoekt
 
Status
Niet open voor verdere reacties.
Terug
Bovenaan Onderaan