channel->description; $site = 'News'; echo "

".$site."

"; foreach ($feeds->channel->item as $item) { $title = $item->title; $link = $item->link; $description = $item->description; $pubDate = $item->pubDate; $namespaces = $item->getNamespaces(true); $media_url = trim((string)$item->children($namespaces['media'])->content->attributes()->url); $single_page = str_replace('https://ned.piota.co.uk/',"","$media_url"); $triarticleid = str_replace('https://ned.piota.co.uk/article/',"","$link"); // $final_image = ("https://ned.piota.co.uk/images/documents/"+$triarticleid"); $a = 'https://ned.piota.co.uk/images/documents/'; $final_image = $a.$triarticleid."/".$single_page; if($i>=100) break; ?> No item found"; } } ?>