Needed: PHP code to parse RSS/XML feeds, and extract required fields into array. A feed is given as a string variable. MUST BE WRITTEN IN PHP!
Two PHP functions needed:
1) PHP function that will extract general info about given feed:
e.g. array FeedInfo(string feed)
results = array (
[title] => 'source title'
[link] => 'link to source'
[pubDate] => 'publication date';
[lastBuiltDate] => 'last built date';
)
2) A php function FeedToArray must parse any type of XML/RSS/Atom feeds (including podcast feeds) and extract required fields into array
array PasreFeedtoArray (string feed, string feed_type, [additional parameters if needed]);
Must be also capable of correctrly parsing CDATA entries. Some of the fields not presents in original feed (e.g. ) must remain empty in the output array. Output array must have the same structure for ALL types of feeds!
results = array (
[0] => array (
[title] => ''
[description] => ''
[link] => '';
[author] => '';
[pubDate] => '';
[category] => '';
[enclosure url] => 'URL to enclosed podcast or video';
)
[1] => array (....)
[2] ....
)
I am a UK-based software consultant with 20 years experience in the industry - the last five dealing with J2EE, Java , XML , PHP, MySQL, Oracle and html. I have already written a php script to parse rss feeds (I could give you the URL if you require). I am just entering the freelancer market and would like to gain some ratings - hence the low bid.