homepage Welcome to WebmasterWorld Guest from 54.161.133.166
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
Forum Library, Charter, Moderators: coopster & jatar k

PHP Server Side Scripting Forum

    
Parse xml for specific keywords
how can I find items in an xml file that have specific keywords?
lruneh




msg:3617430
 6:38 pm on Apr 2, 2008 (gmt 0)

Hey all,

I run a site that has a very vertical subject. I would like to add some news from rss files. But since my site has such a very small subject, there are no feeds that deal only with that subject. In fact, I expect I'll have to search through several feeds to find relevant items.
I have to integrate this in a website that uses php, but I don't know too much php (only the very basics). Does anyone in here know how I could do this? Or does anyone know of a script that does this (I have been searching for one)?

I know its probably very complicated, but if someone could just point me in the right direction, I would be very happy ;)

Thank you

 

mikhaill




msg:3617819
 6:40 am on Apr 3, 2008 (gmt 0)

Its simpler then you think it is.

a) Get Snoopy which is a PHP RSS Reader.
b) Use snoopy to retrieve the RSS feed, each entry becomes an item in an array.
c) Search entry for your keywords. -- If they exists, display it, if not, keep cycling through array.
d) Repeat for as many feeds as you need.

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved