开发者

how to build a basic jquery rss feed

i would like know how to build a rss feed that is evergoing using jquery.

additionally, i would like to use php and 开发者_Python百科mysql to put the feeds into a table to be re-used and searched.

thanks so much =)


To do what that (what you asked in the comments), you'll need to download the rss. It could be done using file_get_contents or curl.

Once you've downloaded it, you'll need to parse the xml using an XML parser (obviously). There's SimpleXml or Dom. Actually there are several xml parsers, i wouldn't be surprised if you find a parser created specifically for rss. If you use SimpleXml you could directly download the rss from the constructor and you wont need to do it yourself.

Finally all you need to do is loop through the entries of the rss and save them in a database.

So you see, you don't need javascript to do this =)

Good Luck

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜