от http://www.softarea51.com/tutorials/parse_rss_with_php.html
Вы всегда можете получить rss в массив php и делать все, что захотите, например. сохраните его в базе данных mysql:
<?php
$doc = new DOMDocument();
$doc->load('http://www.freegamesforyourwebsite.com/feeds.php?feed=latest-games&format=rss');
$arrFeeds = array();
foreach ($doc->getElementsByTagName('entry') as $node) {
$itemRSS = array (
'title' => $node->getElementsByTagName('title')->item(0)->nodeValue,
'desc' => $node->getElementsByTagName('summary')->item(0)->nodeValue,
'link' => $node->getElementsByTagName('link')->item(0)->nodeValue,
'date' => $node->getElementsByTagName('published')->item(0)->nodeValue
);
array_push($arrFeeds, $itemRSS);
}
$mysqli = new mysqli('localhost', 'my_user', 'my_password', 'world');
/* check connection */
if (mysqli_connect_errno()) {
printf("Connect failed: %s\n", mysqli_connect_error());
exit();
}
$stmt = $mysqli->prepare("INSERT INTO `rssitems` (`title`, `summary`, `link`, `published`) VALUES (?, ?, ?, ?)");
$stmt->bind_param('ssss', $title, $summary, $link, $published);
foreach( $arrFeeds as $RssItem){
$title = $RssItem["title"];
$summary = $RssItem["summary"];
$link = $RssItem["link"];
$published = $RssItem["published"];
$stmt->execute();
}
$stmt->close();
$mysqli->close();
?>