I'm trying to retrieve RSS feeds data from the urls with the below php coding, it returns me the required data like item title,item description, item date etc. But when i try to retrieve the rss feeds data for the below URLS with the same php coding it returns no data. We don't know what is blocking us to retrieve data from below blogs.
Please help us to fix this problem and we can retrieve rss feeds data from the below blog urls.
[1] : http://kuwait-music.com
[2] : www.w6n.cc
<?php
require_once "simplepie.inc";
$mfeed = [1] : http://kuwait-music.com;
$feedinstance = new SimplePie();
$feedinstance-->set_feed_url($mfeed);
$feedinstance-->init();
$feedinstance-->handle_content_type();
echo $feedinstance-->get_permalink();
echo $feedinstance-->get_title();
echo $feedinstance-->get_description();
$count = 0;
foreach($feedinstance-->get_items() as $item)
{
echo $item-->get_permalink();
echo $item-->get_title();
echo $item-->get_description();
echo $item-->get_date();
$count++;
if ($count == 1) break;
}
?>