RSS stands for Really Simple Syndication and Atom are two famous feed format.
If you open any RSS Feed page, first line starts with < ?xml … ?> and then
So anything inside
Every content is placed under
So all we need to do is read information inside
Here is a sample program that does it.
/* Our Code Starts Here */
//Enter the Feed url as parameter to function
$xml = simplexml_load_file(”http://www.vaseemansari.com/blog/feed”);
//To check if the read document is a rss feed
$contents = $xml->channel->item;
foreach($contents as $content)
echo “Invalid RSS Format”;
/* Our Code Ends Here */
I will provide you the complete zip file of the php code very soon. Please be in touch and keep on reading.