Linux Today: Linux News On Internet Time.

The ABC's of PHP - Part 10 - The Final Installment

Jun 03, 2009, 03:01 (0 Talkback[s])

"We're going to go step by step through a small script to read the latest headlines from Slashdot.org, for those of you who may be a little young or have never heard of Slashdot, it's basically a news aggregation site, but with a difference. All the news available there is aimed squarely at geeks and nerds the world over. There are articles on the latest tech, and what's going on in the heady world of corporate I.T or just downright bizarre things that people do.

"All where going to do is read the XML feed file from http://slashdot.org/ slashdot.xml and then parse the XML data using regular expressions. If you are going to use this feed then please take a few minutes to read http://slashdot .org/faq/code.shtml and learn the rules and regulations of using the feed, Slashdot is very open about what you can do with the data, but they do ask that you respect their wishes to keep server loads to a minimum. Please note also, that there are better ways to work with XML in PHP and there are a number of built in functions detailed in the PHP manual that make this process much easier."

Complete Story

Related Stories: