PHP and rss

0 views
Skip to first unread message

Anthony

unread,
Sep 1, 2008, 6:56:11 PM9/1/08
to Professional PHP Developers
Hey does someone know how to have a php script be able to tell if a
rss feed has been updated since the last time it had been ran ?

Robert Gonzalez

unread,
Sep 1, 2008, 7:24:29 PM9/1/08
to Professi...@googlegroups.com
Track update times in a file or db.


On Mon, Sep 1, 2008 at 4:56 PM, Anthony <anthony....@gmail.com> wrote:

Hey does someone know how to have a php script be able to tell if a
rss feed has been updated since the last time it had been ran ?




--
Robert A. Gonzalez

C. (http://symcbean.blogspot.com/)

unread,
Sep 2, 2008, 8:29:20 AM9/2/08
to Professional PHP Developers
On 2 Sep, 00:24, "Robert Gonzalez" <robert.anthony.gonza...@gmail.com>
wrote:
> Track update times in a file or db.
>

pubDate and lastBuildDate are not required elements.

> On Mon, Sep 1, 2008 at 4:56 PM, Anthony <anthony.kosed...@gmail.com> wrote:
>
> > Hey does someone know how to have a php script be able to tell if a
> > rss feed has been updated since the last time it had been ran ?
>
> --
> Robert A. Gonzalez

Using magpie RSS:

require('rss_fetch.inc');
$rss = fetch_rss($url);

if (md5($rss)!=md5($stored_rss)) {
// its changed...
}

C.
Reply all
Reply to author
Forward
0 new messages