Forums

Stop Error Message Dislay (1 post)

  1. ricland
    Member
    Posted 3 years ago #

    Oh, a fellow suggested that I use @ in front of the command/function to stop the dislay of error messages in the browser and it worked ... or two of the error messages.

    I had four and don't know where to place the @ in the remaining two.

    These are the lines that begin with "foreach"

    if (!empty($tags)) {
    foreach ($tags as $tag) {
    $feed = fetch_rss("http://www.youtube.com/rss/tag/".$tag.".rss");
    $items = @ array_slice($feed->items, 0, $maxitems);
    foreach ($items as $item) {
    $item['link'] = str_replace("http://youtube.com/?v=", "", $item['link']);
    if ($videos ='') {
    $videofeed = $videofeed.$item['link']."@".$item['title'];
    $videos = $videos.$videofeed;
    }
    else {
    $videofeed = $videofeed."\n".$item['link']."@".$item['title'];
    $videos = $videos.$videofeed;
    }

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.