How to create RSS Feed reader using PHP

We want to dynamically import these feeds into our document. Our server-side script of choice today will be PHP, and we’ll use some jQuery to create the tab structure. In this tutorial i will show you simple php script. You may also like How to Create RSS Feed For Website using PHP

PHP Code

    $rss = simplexml_load_file('');
    echo '<h2>' . $rss->channel->title . '</h2>';
    foreach ($rss->channel->item as $item) {
        echo '<p class="title"><a href="' . $item->link . '">' . $item->title . "</a></p>";
        echo "<p class='desc'>" . $item->description . "</p>";

Leave a Reply

Your email address will not be published. Required fields are marked *