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
The Scoop on Chelsea Clinton's Wedding Gown - People Magazine

msnbc.com

The Scoop on Chelsea Clinton's Wedding Gown
People Magazine
The months of speculation on whom Chelsea Clinton would choose to design her wedding dress are finally over — and it's Vera Wang! The bride walked down the aisle on Saturday night in a strapless silk organza gown with a draped tulle bodice and an ...
Chelsea Clinton's Christian-Jewish wedding is just the start: Now what?USA Today
Bill and Hillary Clinton Describe Great Pride and Overwhelming Emotion'ABC News
Chelsea Clinton Wedding Shines Limelight on TownCBS News
CultureMap -9&10 News -Poughkeepsie Journal
all 5,954 news articles »
Sun, 01 Aug 2010 03:54:11 GMT+00:00
CORRECT: Efforts To Prepare Relief Well To Kill Gulf Spill Continued Sat - Wall Street Journal

Moneycontrol.com

CORRECT: Efforts To Prepare Relief Well To Kill Gulf Spill Continued Sat
Wall Street Journal
(A report "Efforts To Prepare Relief Well To Kill Gulf Spill Continued Sat" published at 10:05 pm EDT misstated in the sixth paragraph the amount of coastline affected by the Gulf oil spill. A corrected version follows.) NEW YORK (Dow Jones)--Work ...
AP EXCLUSIVE: Salazar keeps oil drill ban, for nowThe Associated Press
Oil execs ask Salazar to lift banMemphis Commercial Appeal
Jonah Goldberg: Spill impact seems limited, so let's drop drill banHouston Chronicle
Voice of America -Los Angeles Times -Boston Globe
all 2,874 news articles »
Sun, 01 Aug 2010 04:22:46 GMT+00:00
Activists rally for Arizona immigration law - Reuters

Telegraph.co.uk

Activists rally for Arizona immigration law
Reuters
A demonstrator shows his support of tougher immigration legislation in front of the state capitol building in Phoenix, Arizona, July 29, 2010. PHOENIX Arizona (Reuters) - A few hundred supporters of a new Arizona law that cracks down on illegal ...
Arizona immigration law debate triggers shockwavesArizona Republic
Arizona ruling may backfire for immigrantsMiamiHerald.com
Arizona immigration clash headed for controversial appeals courtSan Jose Mercury News
Chicago Sun-Times -Los Angeles Times -San Francisco Chronicle
all 8,454 news articles »
Sun, 01 Aug 2010 04:00:24 GMT+00:00
Witness says WikiLeaks investigators sought to limit disclosure - Washington Post

Telegraph.co.uk

Witness says WikiLeaks investigators sought to limit disclosure
Washington Post
Before the online site WikiLeaks published a trove of classified documents about the Afghanistan war, government investigators interviewed Boston-area acquaintances of a military analyst charged with providing other documents to the ...
Military airstrike video leak suspect in solitary confinementCNN
MIT graduate admits link in leak caseBoston Globe
Informant says WikiLeaks suspect had civilian helpThe Associated Press
New York Times -FOXNews -Boston Herald
all 670 news articles »
Sun, 01 Aug 2010 03:04:15 GMT+00:00
Ethics trials highlight racial tensions in Congress - Los Angeles Times

Reuters

Ethics trials highlight racial tensions in Congress
Los Angeles Times
Proceedings slated for House members Maxine Waters and Charles Rangel could create a rift between the Congressional Black Caucus and other Democratic leaders. By James Oliphant and Richard Simon The prospect of two long-serving African American ...
Lawmakers stoke the public's disgustWashington Post
House Inquiry on Waters Tied to BankNew York Times
Rangel Under Growing Pressure to ResignCBS News
FOXNews -The Associated Press -CNN International
all 2,086 news articles »
Sun, 01 Aug 2010 03:38:05 GMT+00:00