RSS Example using class_http and class_xml

Author: Troy Wolf (troy@troywolf.com)
Modified Date: 2005-06-27 16:25

The column shown on the right contains the top 5 news items from Google News. The news is syndicated using RSS. Thousands of websites from major news sites such as Yahoo and NPR to expert sites such as techreport.com to personal blogs provide their content in the RSS format making it easy for you to incorporate their content on your own website.

This page is a demonstration of the rss20() function that combines the power of two PHP classes from Troy Wolf:
  1. class_http.php
  2. class_xml.php
View the source of this page which includes the rss20() function.

About the author

Troy Wolf is the author of SnippetEdit--a PHP application providing browser-based website editing that even non-technical people can use. Website editing as easy as it gets. Troy has been a professional Internet and database application developer for over 12 years. He has many years' experience with ASP, VBScript, PHP, Javascript, DHTML, CSS, SQL, and XML on Windows and Linux platforms. Check out Troy's Code Library.

 
Top Stories - Google News
Does Tom Brady's legacy shift? - ESPN

CBC.ca

Does Tom Brady's legacy shift?
ESPN
By Vince Verhei Was the New York Giants' 21-17 win over the New England Patriots in Super Bowl XLVI a great game for Eli Manning? Or a lousy game for Tom Brady? Neither, actually. Although Manning's team won and Brady's team lost, the two quarterbacks ...
Angry Gisele Defends Tom Brady After Super Bowl LossFox News
Brady spent hour in agony after Super Bowl XLVI lossUSA TODAY
Super Bowl Monday: Eli Manning heads to Disney World for 2nd timeLos Angeles Times
MLive.com -Indianapolis Star -Wall Street Journal
all 16,689 news articles »
Mon, 06 Feb 2012 17:36:43 GMT
Utah police vow to continue probe into Susan Powell's disappearance - Los Angeles Times

USA TODAY

Utah police vow to continue probe into Susan Powell's disappearance
Los Angeles Times
Police in Utah said Monday that the death of Josh Powell -- the only person of interest in the disappearance of his wife, Susan, near Salt Lake City in 2009 -- will not necessarily hinder their ongoing efforts to solve the perplexing case.
Blast kills spouse, sons of missing Utah womanUSA TODAY
Husband of missing Washington mom kills sons, self; kids 'verbalized' about ...Fox News
Josh Powell Was Calm, Relaxed, Optimistic Before BombingABC News
New York Daily News -Salt Lake Tribune -STLtoday.com
all 1,912 news articles »
Mon, 06 Feb 2012 17:24:06 GMT
World seeks next step on Syria as deaths mount - CNN

TIME

World seeks next step on Syria as deaths mount
CNN
By Holly Yan, CNN (CNN) -- Intense blasts echoed through the Syrian city of Homs on Monday, just a part of the latest violence ravaging parts of the country, as world leaders sought a new strategy to end the deadly fighting.
US closes embassy in Syria, vows further pressureReuters
US closes embassy, pulls diplomats from Syria as violence intensifiesWashington Post
US Closes Syrian Embassy, Presses Assad to GoABC News
The Guardian
all 11,612 news articles »
Mon, 06 Feb 2012 17:23:08 GMT
Romney campaign criticizes Santorum on health care claims - CNN

CTV.ca

Romney campaign criticizes Santorum on health care claims
CNN
By Tom Cohen, CNN Mitt Romney's campaign is taking on criticism of his health plan in Massachusetts by Rick Santorum. Washington (CNN) -- Mitt Romney's front-running campaign on Monday criticized trailing rival Rick Santorum for remarks about Romney's ...
Romney adds to delegate lead after big victory in Nevada CaucusesWashington Post
US election live: Gingrich struggles in Minnesota, Colorado, Missouri votesThe Guardian
Romney Campaign Targets SantorumDaily Beast
Chicago Tribune -Los Angeles Times
all 8,379 news articles »
Mon, 06 Feb 2012 17:48:16 GMT
US Toughens Sanctions on Iran's Central Bank - Wall Street Journal

CBC.ca

US Toughens Sanctions on Iran's Central Bank
Wall Street Journal
By TENNILLE TRACY WASHINGTON—The US handed down a fresh set of sanctions on the Iranian government Monday in the latest bid to pressure Tehran to end its nuclear program. The White House announced Monday it was freezing all property owned in the US by ...
Netanyahu can't fly solo in Israel to attack IranReuters
US levies tougher sanctions on Iran's Central BankThe Associated Press
Obama orders new US sanctions on Iran's government, including Central BankWashington Post
Voice of America -New York Times
all 1,159 news articles »
Mon, 06 Feb 2012 18:12:42 GMT