Bladephp: Now with 8+ codeigniter, php, and laravel project 8+ php project From $37/Month From Rs. 2499/Month

How to create RSS Feed reader using PHP

by
Category:php
php
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

<?php
    $rss = simplexml_load_file('http://bladephp.co/rss.xml');
    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>";
    }
?>

0 Comments


Html code work in comment box


Related Post