download('http://linuxfr.org/news.atom', $last_modified, $etag); if ($resource->isModified()) { $parser = $reader->getParser( $resource->getUrl(), $resource->getContent(), $resource->getEncoding() ); $feed = $parser->execute(); // Save your feed in your database // ... // Store the Etag and the LastModified headers in your database $etag = $resource->getEtag(); $last_modified = $resource->getLastModified(); // ... } else { echo 'Not modified, nothing to do!'; } } catch (PicoFeedException $e) { // Do something... }