svekweb.co.uk

October 14, 2007

Magpie rss feed now live

Filed under: , , — kevin_svek @ 10:53 am

The feed is now live on Where In Llanelli web site giving feeds from the Llanelli Star and BBC Local information for South Wales. The page with the rss feed in is live on their news page although this is undergping a “redesign” – new look is at News2 Source code sample (partial)

October 3, 2007

RSS Feeds

Filed under: — kevin_svek @ 1:31 pm

Been looking at a simple way of integrating an RSS feed into a site – see it at Where In Llanelli Web Site – whereinllanelli.co.uk integrated into PHP page instead of using java script based rss feed.
It uses magpie rss and does an array sort on the rss results to order them in descending date order. Other interesting technique used here is array slice to limit the result set and magpie rss feed also caches the results to avoid overloading the server that sources the feed.
Waiting now for the customer to make it live since it’s currently using an html version of the page with a javascript feed for some news and a static snapshot of the rest of the news.
Longer term looking to add some more PHP scripts for the customer – to keep some of the other areas of the site updated more efficiently.

Powered by WordPress