Keyword search
Keywords:

Items to display:

Sort by:

children('http://a9.com/-/spec/opensearchrss/1.0/'); $total = $counts->totalResults; $startOffset = $counts->startIndex; $endOffset = ($startOffset-1) + $counts->itemsPerPage; ?>

Search results

items found. Showing items to :

entry as $entry) { // get nodes in media: namespace for media information $media = $entry->children('http://search.yahoo.com/mrss/'); // get video player URL $attrs = $media->group->player->attributes(); $watch = $attrs['url']; // get video thumbnail $attrs = $media->group->thumbnail[0]->attributes(); $thumbnail = $attrs['url']; // get node for video length $yt = $media->children('http://gdata.youtube.com/schemas/2007'); $attrs = $yt->duration->attributes(); $length = $attrs['seconds']; $descrip = substr($media->group->description, 0, 300); // get node for video ratings $gd = $entry->children('http://schemas.google.com/g/2005'); if ($gd->rating) { $attrs = $gd->rating->attributes(); $rating = round($attrs['average'], 2); } else { $rating = 0; } // print record echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; } } ?>

".sprintf("%0.2f", $length/60) . " min.
{$rating} user rating
{$media->group->title}
\n"; echo $descrip . "