",">",$string); return $string; } header("Content-Type: text/xml"); $rss = '<'.'?xml version="1.0" encoding="UTF-8"?'.'>'; $rss .=''.APP_NAME.''; $rss .=''.APP_URL.''; $rss .=''.formatStringForRss(APP_TITLE).''; $rss .='nospam@jaysalvat.com'; $rss .='en'; $rss .='Php'; $rss .='Copyright '.date("Y").', Jay Salvat'; $rss .='nospam@jaysalvat.com (Jay Salvat)'; $xml = simplexml_load_file("../versions.xml"); foreach ($xml->version as $version) { $rss .=''; $rss .='nospam@jaysalvat.com ('.formatStringForRss("Jay Salvat").')'; $rss .=''.formatStringForRss($version['name']).''; $rss .=''.APP_URL.''; $rss .=''.date('D, d M Y H:i:s', strtotime($version['date'])).' GMT'; $rss .=''.formatStringForRss("".$version->description).''; $rss .=''; } $rss .=''; echo $rss; ?>