Page 1 of 1

How to check if and RSS-feed is "okay"

Posted: Wed Jun 18, 2008 6:41 am
by nakkeli
Hi!

I'm trying to create an RSS-parser, which would load RSS-feeds from local newspapers and parse them according to rules. The only problem is, sometimes those feeds are down and I have no idea of knowing are they online. I tried file_exists but that didn't work. Also tried some code(s) I found googling but they were not so good. So, is there a way to check if an RSS feed is online before I start processing it?

Re: How to check if and RSS-feed is "okay"

Posted: Sat Jun 21, 2008 4:10 am
by calcop
When you pull the data, make sure the xml and rss tags exists before parsing it.