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.

 
Google News
Clinton Rallies Her Troops to Fight for Obama - New York Times


Times Online
Clinton Rallies Her Troops to Fight for Obama
New York Times -25 minutes ago
By PATRICK HEALY DENVER - With her husband looking on tenderly and her supporters watching with tears in their eyes, Senator Hillary Rodham Clinton deferred her own dreams on Tuesday night and delivered an emphatic plea at the Democratic National ...
Video: Dems Get Set For Roll CallCBS
Republicans find a voice at the Democratic conventionLos Angeles Times
The Associated Press - U.S. News & World Report - DetNews.com - ABC News
all 7,033 news articles
Thu, 28 Aug 2008 04:08:49 GMT
Indicted Senator Wins GOP Primary - New York Times


The Associated Press
Indicted Senator Wins GOP Primary
New York Times -25 minutes ago
By WILLIAM YARDLEY Senator Ted Stevens’s easy victory in Alaska’s Republican primary on Tuesday sets him up for two more fights this fall that are likely to be much tougher: one in the general election and the other in the courtroom.
Stevens Wins Alaska Primary, Young in Dead HeatWashington Post
Race Tightens in Alaskan PrimaryWall Street Journal
The Associated Press - CNN - Los Angeles Times - CQPolitics.com
all 743 news articles
Thu, 28 Aug 2008 04:08:50 GMT
Georgia War Shows 'Weak' Russia, US Official Says - Washington Post


BBC News
Georgia War Shows 'Weak' Russia, US Official Says
Washington Post -3 hours ago
By Glenn Kessler Russia's conflict with Georgia is the sign of a "weak" Russian nation, not a newly assertive one, and Moscow now has put its place in the world order at risk, the top US diplomat for relations with the country said in an interview ...
Video: Crisis in the Caucasusfrance24english
Russia faces fresh condemnationBBC News
Financial Times - Reuters UK - The Weekly Standard - PRESS TV
all 5,236 news articles
Thu, 28 Aug 2008 00:36:02 GMT
Gustav kills 23; New Orleans makes evacuation plan - The Associated Press


The Associated Press
Gustav kills 23; New Orleans makes evacuation plan
The Associated Press -3 hours ago
PORT-AU-PRINCE, Haiti (AP) - Gustav stalled offshore Wednesday and poured more misery onto Haiti after landslides and flooding killed 23 people.
Video: Deadly Storm Gustav Heads for Gulf CoastAssociatedPress
Gustav Storming Towards Jamaica, Gulf of MexicoWSAV-TV
Peoria Journal Star - Bloomberg - Northwest Cable News - MarketWatch
all 4,271 news articles
Thu, 28 Aug 2008 01:04:02 GMT
Russia Adopts Blustery Tone Set by Envoy - New York Times

Russia Adopts Blustery Tone Set by Envoy
New York Times -2 hours ago
By CLIFFORD J. LEVY MOSCOW - Here is one measure of the aggressive shift in Russian foreign policy in recent weeks: Dmitri O. Rogozin, Russia’s representative to NATO, a finger-wagging nationalist who hung a poster of Stalin in his new ambassadorial ...
Georgia looks for the silver liningLos Angeles Times
Farewell, NATONational Review Online Blogs
Financial Times - PRESS TV - Jakarta Post - BBC News
all 254 news articles
Thu, 28 Aug 2008 01:52:06 GMT