<rss version=\"2.0\">
<channel>
<title>ngeo Social Mobile Network - DEFINE THE TITLE HERE</title>
<link>DEFINE THE SITE NAME HERE</link>
<description>DEFINE THE DESCRIPTION HERE</description>
<copyright>Copyright $year, ngeo mobile social network articles</copyright>
<generator>DEFINE THE GENERATOR - SITENAME</generator>
<ttl>$ttl</ttl>
<pubDate>$publish</pubDate>
\n\n";
// select from database
// for lava use something like this - i dnno
while(list($id,$n,$t) = mysql_fetch_array($result))
{
// put the content correct // for lava use $t $clean_name_S = ereg_replace("[^a-z0-9._]", "-",
str_replace(" ", "-",
str_replace(".", "-",
strtolower($t) ) ) );
// put the content correct
// for lava set the correct link and correct values in the correct places $id,$n,$t
// set your link
// the link must return the correct values and must you bring back
$somecontent .= "<item>
<title><![CDATA[$t]]></title>
<link>http://ngeo.ro/index.php?type=forums&mobile=read&forum=$t&$clean_name_S</link>
<description><![CDATA[$t]]></description>
<category>$n</category>
<pubDate>$publish</pubDate>
</item>\n";
}
// close rss
$somecontent .= "</channel>
</rss>";
// make the file, if it exists it will overwrite it
$fp = fopen($filename,"w") or die ("error opening file .xml");
// set the content into the file
fputs($fp,$somecontent);
// close the file
fclose($fp);
echo "rss created at $publish!";
// validate your feed to W3C Feed Validation Service, for Atom and RSS ?> you can password protect the page and periodically run. expect questions here and demo :) the upload contain the css aka xsl.