How can I display RSS feeds from other sites with PHP? I have been searching around the internet for so long and I can't find any tutorials or information on making your own RSS Parser thingy or how they work :/ All I have found is some scripts which display ads to their site at the bottom of every RSS feed I want to display and it looks quite unprofessional... Also, they rely on a remotely hosted javascript file to display the feed. Can anyone point me to any tutorials where I can learn to do this with my own code so I don't have to rely on another script? Another thing I need to know is how to display search results from other search engines. Is it done in the same way? Like, displaying googles search results, list of links, titles and descriptions... Also there are torrent search engines which grab results from several different torrent sites and display them on one page. Anyone know how they do it? Thanks!
The easiest way to parse an RSS feed with PHP is to use SimpleXML extension. However it requires PHP 5. You can find more info at www.php.net/simplexml
To display search results from search engines, like Yahoo and Google, you will have to use their own API interfaces. They provide it for free, you would just need to register for API Keys. Both Google and Yahoo have tons of manuals on how to use their APIs. More info at code.google.com or developer.yahoo.com
Im not sure if this is what you're looking for but this tutorial helped me out http://www.sitepoint.com/article/php-xml-parsing-rss-1-0 The whole source code is here http://www.sitepoint.com/examples/phpxml/sitepointcover-oo.php.txt All you have to do is find this line...$fp = fopen("http://www.sitepoint.com/rss.php","r") and change the URL to your own RSS feed URL. Works for me. Hope that helps.