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
California Prius incident probed - Detroit Free Press

Reuters

California Prius incident probed
Detroit Free Press
WASHINGTON -- As Toyota sought to contain the fallout from a California sudden-acceleration case caught on camera, its dealers accused General Motors of offering predatory incentives using federal money. The Japanese automaker and the ...
Runaway Prius Tale Prompts New ProbeWall Street Journal
U.S. investigating Toyota Prius incident: reportsMarketWatch
2 Reports of Trouble in Stopping PriusesNew York Times
York Daily Record -San Diego Union Tribune -USA Today
all 2,074 news articles »
Wed, 10 Mar 2010 09:43:06 GMT+00:00
'R. Shlomo plan timing regrettable' - Jerusalem Post

Telegraph.co.uk

'R. Shlomo plan timing regrettable'
Jerusalem Post
After the announcement of an east Jerusalem building plan during US Vice President Joe Biden's visit was heavily criticized on Wednesday, Interior Minister Eli Yishai told Army Radio that the timing was simply a ...
Interior Minister: East Jerusalem plan wasn't intended to provokeHa'aretz
Israeli minister apologizes to Biden over homes planWashington Post
Biden's West Bank tour clouded by settlement plansWOKV
Telegraph.co.uk -The Associated Press -Xinhua
all 3,038 news articles »
Wed, 10 Mar 2010 09:09:25 GMT+00:00
Bomber's death fresh blow to Indonesia militants - Reuters

The Hindu

Bomber's death fresh blow to Indonesia militants
Reuters
CANBERRA/JAKARTA (Reuters) - A suspected mastermind of the Bali bombings was killed in a police raid in Indonesia in the latest blow to an Islamist militant movement in the world's most populous Muslim country. Dulmatin, who once trained with al Qaeda ...
Bali bombing suspect confirmed dead in police raidThe Associated Press
Official: Bali bombing mastermind deadCNN International
Jakarta confirms bomber-maker deathAljazeera.net
Xinhua -Jakarta Post -Wall Street Journal
all 1,069 news articles »
Wed, 10 Mar 2010 07:58:52 GMT+00:00
Health Care's Obstacle: No Will to Cut - New York Times

Washington Post

Health Care's Obstacle: No Will to Cut
New York Times
For anyone who cares about medical costs — which is to say anyone who cares about the take-home pay of American families or about the budget deficit — President Obama's health reform plan is a terribly mixed bag. ...
Thousands rally to support health-care reform in downtown WashingtonWashington Post
Obama backs bipartisan crackdown on healthcare cheatsReuters
Why Obama Can't Move the Health-Care NumbersWall Street Journal
CNN -FOXNews -USA Today
all 1,393 news articles »
Wed, 10 Mar 2010 01:13:59 GMT+00:00
Ex-Congressman Massa says groping wasn't sexual - Los Angeles Times

Washington Post

Ex-Congressman Massa says groping wasn't sexual
Los Angeles Times
Former Rep. Eric Massa, a New York Democrat who resigned his seat Monday amid a sexual harassment investigation, goes on TV to defend himself. By James Oliphant Reporting from Washington - A day after resigning his seat in the face of a House ethics ...
Massa seeks to divert attention from harassment allegationsCNN
NewsPolitics'I tickled him': Ex-Rep. Massa has bizarre interview with Fox's ...New York Daily News
Massa: 'I Forced Myself Out' of CongressFOXNews
TIME -The Associated Press -USA Today
all 1,401 news articles »
Wed, 10 Mar 2010 06:39:10 GMT+00:00