In this recipe we will fetch a Really Simple Syndication (RSS) feed of a blog using PHP and then display it in the page using jQuery. RSS is a standard format for publishing feeds and there are several formats of RSS feeds. The feed we will use is in RSS2.0 and its standard structure is shown in the following screenshot:
Create a folder named
Recipe5 inside the
Recipe5folder. In this file, define some CSS styles for elements and create a
results, which will serve as a container for displaying posts from the feed.