Hello Senior Players, We would like to integrate RSS feed in PHP form on our webpage. Is it possible to provide some inputs or code? Currently javascript is implemented but as you all know that they are not search engine friendly. So please provide some resources with the help of which we can integrate rss feed,php based,on our existing page. Thanks and waiting for your cooperation Sachu
It's really simple, This is an example for a simple RSS file : http://en.wikipedia.org/wiki/RSS_(file_format)#RSS_2.0 And you can "echo" it via PHP or use PHP simpleXML library (It is really simple) : http://il.php.net/simpleXML/ Good luck
We think we mentioned it in some wrong manner. We need to integrate http://feeds.business-standard.com/News-Now.xml on our existing webpage in php format. Could you please advice us? thanks regards
RSS is in XML not PHP format... So u can use PHP to generate your XML file on the fly. Usual concept: U have a table in database, and when u add a new item in table your script need to select data from table and write it in to the xml file. And if you want to integrate feed from an external page you will need some XML parser
Hello, http://feeds.business-standard.com/News-Now.xml is the feed. We want to display the out of this feed on our webpage. How can we do this? please Can anyone explain this in steps? thanks and waiting for your cooperation regards
Grab rss2html, the free version from here : http://www.rss2html.com/ Set it up, modify the template and call it as a php include file on whatever page(s) you want it to show.
Search for a rss parser written in php. Magpie Rss seems to be a popular one: http://magpierss.sourceforge.net/
<?php do{ $xml = @simplexml_load_file('http://feeds.business-standard.com/News-Now.xml'); if(!$xml){ $Tries++; sleep(1); } }while(!$xml && $Tries < 4); if($xml){ foreach ($xml->channel->item as $item) { print $item->title."<br />"; print $item->link."<br />"; print $item->description."<br /><br />"; } } else { echo 'no xml file retrieved';} ?> PHP: if your site document is a .php-file, just add the code somewhere halfway, or if it is an .html-file, save it as .php-file and add the code somewhere halfway try putting it in a div with a scrollbar (keeps your page intact) <div style="background-color: white; width:600px; height:250px; border: 1px solid white;overflow:auto"> [code....]</div>