problem:Auto responder for RSS

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
bow
Forum Newbie
Posts: 10
Joined: Mon Feb 18, 2008 12:00 am

problem:Auto responder for RSS

Post by bow »

Hi guys , I want to make a web2 website , which one part of this involves in rss from different sites.
The problem is I want the user to specify rss from different sites , and give his email , and as soon as one of the specified sites updats its rss , my codes detect this update and send the content of rss to email of the user ... I don't know where to start

is it possible for php to execute a script automatically , without anyone to ask it to do so ? :!:
User avatar
Benjamin
Site Administrator
Posts: 6935
Joined: Sun May 19, 2002 10:24 pm

Re: problem:Auto responder for RSS

Post by Benjamin »

You're going to want to research curl and cron jobs. You'll also need to store the latest version of the feeds someplace, so I'd recommend MySQL. You could probably just md5 the feeds to save space. Any change in the data would result in a change being detected as the md5 would change.

You may want to watch out for feeds that contain timestamps or other data that changes on every request. Not sure these exist in rss feeds or not but I imagine they probably do. In that case you will need to develop alogrithms that can detect these and filter them out.
bow
Forum Newbie
Posts: 10
Joined: Mon Feb 18, 2008 12:00 am

Re: problem:Auto responder for RSS

Post by bow »

wow, thanks for quick reply
it helped alot : I think now I know where to start
Post Reply