【发布时间】:2011-03-15 19:19:03
【问题描述】:
目前我正在使用以下内容,这对于多个剪辑来说似乎很慢:
static function get_yt_title($clip_id){
$feedURL = 'http://gdata.youtube.com/feeds/api/videos/' . $clip_id;
$entry = @simplexml_load_file($feedURL);
if($entry){
$video= new stdClass;
$media = $entry->children('http://search.yahoo.com/mrss/');
$video->title = ucwords(strtolower($media->group->title));
return $video->title;
}
else{
return FALSE;
}
有没有比这更有效的方法来使用 php 一次处理 5-10 个剪辑?
【问题讨论】: