2010-01-14

parsing web pages.

Long time ago I was thinking that I`d like to see National Geographic NGM "Your Shoot Daily Dozen" pictures not in the flash, but simple embedded in web pages. Mostly because at that time i was using some of these pictures in another blog, making picture selection by myself, and i needed hyperlinks. It is almost impossible to get picture hyperlinks from flash based web page, but I found that this flash script is taking picture localizations from xml file. And that`s it - all I need to do is to get contents and parse this xml, and finally build the webpage.

The source code you can find here

http://paste.php.lv/dad8d34469fb4558edabac62aa83dea7?lang=php