Here are some of my top choices for open source RSS feed readers in 2017, each a little different in its approach. ![]() Long live RSS! We last looked at open source RSS reader options in 2013, and it's time for an update. And as a publisher, it's a simple format that most any publishing software I already use will support out of the box, letting me reach more people and easily distribute many types of documents. There is no other easy was for me as a consumer to read a wide variety of publications, formatted in a client of my choosing, where I am virtually guaranteed to see every item that is published, while simultaneously not being shown a bunch of articles I have already read. The truth is, RSS and related feed formats are just more versatile than anything in wide usage that has attempted to replace it. (Is it any wonder that vinyl album sales just hit a 25-year peak last year?) One only has to look at the success of online feed reader site Feedly to understand that there's still definitely a market for RSS readers. The target audience for a technology might change a bit, and the tools people use to consume the technology might change, too.īut RSS is no more gone than email, JavaScript, SQL databases, the command line, or any number of other technologies that various people told me more than a decade ago had numbered days. But old technologies never really die just because new technologies come along, particularly if the new technology does not perfectly replicate all of the use cases of the old one. When Google Reader was discontinued four years ago, many "technology experts" called it the end of RSS feeds.Īnd it's true that for some people, social media and other aggregation tools are filling a need that feed readers for RSS, Atom, and other syndication formats once served. If( strlen( $description ) > $max )$description=substr( $description, 0, $max ). $description=$xp->evaluate('string(description)',$node) Jeremy Corbyn Speaks To The Common People | The People's ElectionĪ more complete example showing multiple possible RSS feeds and more fields from each article: ![]() Gavin And Stacey Christmas Special: First Reviews Of Reunion Episode Are In $xp->query('title',$node)->item(0)->textContentĪ snippet from the output: Where To Travel In 2020: The Top 10 Emerging Destinations There are many other ways one could do this - but it was quickly written just as example. To process the contents of an RSSFeed typically one would use DOMDocument or SimpleXML - the code here simply loads the remote XML file directly into the DOMDocument and instantiates an XPath object to further query to find nodes. To give an idea how you can POST a url for some RSSFeed to a script and then process it perhaps this might help. ![]() '' // output link & titleĮcho $entry->description // return post content So this is what displays a feed from espn but I need to integrate this so that when I type the URL into the form it places that one into the place where the url in this code snippet currently is: $feed_url = "" Įcho 'link.'" title="'.$entry->title.'" target="_blank">'. Not even sure what to google anymore, I am new to building code from scratch. Currently, I am getting an error file_get_contents() expects parameter 1 to be a valid path, array given in C:\xampp\htdocs\week14\rssfeed.php on line 2 ![]() I am trying to build an HTML/PHP application where you type in an RSS URL into a form field and then retrieve the RSS feed in the browser as a result of going to the rssfeed.php page.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |