Code:
<?php
$host = "localhost";
$kadi = "dbuser";
$sifre ="dbpassword";
$db = "database_name";
mysql_connect ("$host", "$kadi", "$sifre") or die ("Bağlantıda Hata");
mysql_select_db ("$db") or die ("Veritabanina Baglanilamadi");
@header("Content-type: text/xml\n\n");
echo '<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
<channel>
<title>Dosya Yükle - Upload.Com.TR</title>
<description>Upload.Com.TR - Dosya Yükle</description>
<link>http://www.upload.com.tr</link>
<language>en-us</language>
';
$baglan = mysql_query("SELECT* FROM file ORDER BY id ASC");
while ($cek=mysql_fetch_assoc($baglan) ) {
echo "<item>
<title>".$cek['originalFilename']."</title>
<description>".$cek['originalFilename']."</description>
<link>http://www.upload.com.tr/".$cek['shortUrl']."/".$cek['originalFilename']."</link>
</item>";
}
echo "</channel></rss>";
?>
Test RSS : http://www.upload.com.tr/rss.php