",">",$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 .='[email protected]'; $rss .='en'; $rss .='Php'; $rss .='Copyright '.date("Y").', Jay Salvat'; $rss .='[email protected] (Jay Salvat)'; $xml = simplexml_load_file("../versions.xml"); foreach ($xml->version as $version) { $rss .=''; $rss .='[email protected] ('.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; ?>