How can i only fetch a (rss/atom) feed when it's changed?
| From: | Mark | Date: | Tue, 02 Oct 2007 22:43:04 +0000 |
| Subject: | How can i only fetch a (rss/atom) feed when it's changed? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-262656@lists.php.net to get a copy of this message | ||
Hey,
I'm currently fetching feeds about every hour (automatically in php)
but sometimes there are no new updates in a feed for 2 hours. so no i
wonder if it's possible to check the feed somehow to see if it changed
since i last fetched it and if it's the case than download it like it
should.. if it's not changed than just skip the download.
Is this possible and how (with filemtime?)? i rather have a method
that works in php 4 and 5 (i use php 5 but alot of hosts still don't).
thanx,
Mark.