RSS (Rich Site Summary) often dubbed Really Simple Syndication is a format for delivering regularly changing web content. Many news-related sites, weblogs and other online publishers syndicate their content as an RSS Feed to whoever wants it and they enable usually different types of feeds for their users.
RSS solves a problem for people who regularly use the web. It allows you to be updated by retrieving the latest content from the sites you are interested in.
Today I will discuss about how to get the feed of a website and can use your own website for update news, tutorial or notice.It’s very simple. It’s is similar as xml file read.
Most of the website have RSS FEED option with a symbol like and a link. we need to go to the link. And show the view page source to confirm that what information have been published for user.Then we can collect the information and display in our website easily.
Now I am going to describe with an example :
echo "<b>Title is </b>:".$xml->channel->item[$i]->title." ";
echo "<b>Link is : </b>".$xml->channel->item[$i]->link."
|Title is :XML file create with PHP containing Dynamic data Link is : http://www.webprogrammings.net/tutorial/individual_topic/7
Title is :XML Read and Write From Beginning Link is : http://www.webprogrammings.net/tutorial/individual_topic/6
Title is :Page not refresh after back button Click Link is : http://www.webprogrammings.net/tutorial/individual_topic/5
Title is :Remote Database Access Link is : http://www.webprogrammings.net/tutorial/individual_topic/4
Title is :Execute PHP code from the command line Link is : http://www.webprogrammings.net/tutorial/individual_topic/3
Title is :Execute a File or Web Page Using Cron job at Cpanel Link is : http://www.webprogrammings.net/tutorial/individual_topic/2
Title is :Cannot modify header information – headers already sent by … Link is : http://www.webprogrammings.net/tutorial/individual_topic/1
so we can also get link, description, publishing date like this. $xml->channel->item[$i]->link , $xml->channel->item[$i]->description;
In next topics i will describe how to make RSS FEED for Website to publish your site’s news or any update.