打开页面致命错误:在第141行的/home/mywebsite/public_html/includes/functions.php中调用非对象上的成员函数children()

时间:2014-01-17 11:31:26

标签: php function image-processing youtube

当我尝试访问我的页面或主页时出现错误

THIS LINE 140:$ entry = simplexml_load_string($ result);

本行141:$ media = $ entry-> children('http://search.yahoo.com/mrss/');

    $desc = (mb_strlen(strip_tags($media->group->description), 'UTF-8')>350) ? mb_substr($media->group->description, 0, 350, 'UTF-8').'...' : strip_tags($media->group->description);

    $desc_yt = "<strong>youtube.com</strong> - ".$desc;
    $title_yt = $media->group->title;
    $image_yt = 'http://i1.ytimg.com/vi/'.$id_yt.'/hqdefault.jpg';

    $return['id_youtube']=$id_yt;
    $return['url']=$youtube;
    $return['title']=$title_yt;
    $return['image']=$image_yt;
    $return['description']=$desc_yt;

    return $return;
}

0 个答案:

没有答案