Tech Note: Code Frenzy Continued

Charles Johnsonfollow me on twitter
Technology • Mon Nov 9, 2009 at 6:21 pm PST • Views: 170

As I mentioned yesterday, I recently discovered that the LGF server was running PHP 5, not PHP 4 as I thought, and I’ve been like a geek in a gadget store ever since.

For years, the RSS news and blog feeds in our left sidebar were driven by a PHP 4 class called Magpie RSS, but now I’ve rewritten the LGF code to use PHP 5’s native SimpleXML functions.

The RSS format was pretty straightforward, but ATOM feeds required a little more geekage, because to do it right you have to properly handle an XML feature called “namespacing” while parsing the feed. The PHP SimpleXML documentation is rather … ahem … sparse on exactly how to do this, but this article at IBM’s developerWorks was very helpful: SimpleXML processing with PHP. And this comment at the PHP website showed me how to auto-detect whether an XML file is RSS or ATOM.

And now, we return to our regularly scheduled open thread.

Advertisement

458 comments

^ back to top ^

Name:

Pass:

Register Forgot Your Password? Account Settings Re-send Confirmation (To log in, cookies must be enabled in your browser!)

Turn off ads by subscribing!
For about 33 cents a day, our subscription option turns off all advertisements at LGF!
Read more...


► LGF Headlines

  • Loading...

► Tweeted Articles

  • Loading...

► Tweeted Pages

  • Loading...

► Top 10 Comments

  • Loading...

► Bottom Comments

  • Loading...

► Recent Comments

  • Loading...

► Tools/Info

► LGF Hits

► Resources

► Never Forget

► Statistics

► Tag Cloud

► Contact

You must have Javascript enabled to use the contact form.
Your email:

Subject:

Message:


Messages may be published in our weblog, unless you request otherwise.
Tech Note:
Using the Contact Form

More Partners

Compare Electricity Prices in your area. Texas Electricity is deregulated; you have the right to choose Texas Electric Rates from among many Texas Electric Companies.

Brainwave samplings.

TwitterFacebook
LGF Pages
Recent Pages

researchok
' ...never forget how much I love you, and when my last breath escapes me on the battlefield, it will whisper your name...'
3 hours, 30 minutes ago
Views: 54 • Comments: 0
Tweets: 0 • Rating: 1

researchok
Poverty as Destiny
3 hours, 36 minutes ago
Views: 43 • Comments: 0
Tweets: 0 • Rating: 0

researchok
Clarity From Syria
3 hours, 38 minutes ago
Views: 50 • Comments: 0
Tweets: 0 • Rating: 0

researchok
About Those Sweater Vests
3 hours, 39 minutes ago
Views: 50 • Comments: 0
Tweets: 0 • Rating: 0

researchok
Ten Years Later, CIA 'Rendition' Program Still Divides N.C. Town
3 hours, 40 minutes ago
Views: 48 • Comments: 0
Tweets: 0 • Rating: 0

researchok
'..the banks are paying out a mere $5.8 billion, while getting bullet-proofed from prosecution for the fraud perpetrated'
3 hours, 40 minutes ago
Views: 44 • Comments: 0
Tweets: 0 • Rating: 0

researchok
Timothy Noah: What the Heck Is the 'Political Intelligence' Industry?
3 hours, 40 minutes ago
Views: 49 • Comments: 0
Tweets: 0 • Rating: 0

researchok
Debate Arises at Qatar U. Over Decision to Teach Mainly in Arabic
3 hours, 41 minutes ago
Views: 45 • Comments: 0
Tweets: 0 • Rating: 0

researchok
Charles Murray, Author of 'The Bell Curve,' Steps Back Into the Ring
3 hours, 41 minutes ago
Views: 56 • Comments: 0
Tweets: 0 • Rating: 0

researchok
US Disarmament Expert: 'The Risk That Nuclear Weapons Will Be Used Is Growing'
3 hours, 41 minutes ago
Views: 29 • Comments: 0
Tweets: 0 • Rating: 0

 Frank says:

Beauty is a French phonetic corruption of a short, cloth neck ornament, currently in resurgence.