LGF

Tech Note: Code Frenzy Continued

Technology | Mon, Nov 9, 2009 at 6:21:49 pm PST

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 ^

log in
Name:
Pass:

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

► LGF Headlines

  • Loading...

► Top 10 Comments

  • Loading...

► Bottom Comments

  • Loading...

► Recent Comments

  • Loading...

► Tools/Info

► LGF Hits

► Slideshows

► 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

► News/Opinion

  • Loading...

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.

Your pilikia is all pau.

Follow Lizardoid on Twitter

 Frank says:

You think our music- the Monkees music is banal and insipid?" -- Frank replying to Mike Nesmith on an episode of "The Monkees" on which Frank and Mike pretended to be each other for several minutes before the opening theme.