Upload files RSS feed

ozkantr

New Member
YetiShare User
Wurlie User
May 18, 2013
4
0
0
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>"; 
?>
Download : http://www.upload.com.tr/tn/rss.rar

Test RSS : http://www.upload.com.tr/rss.php
 

admin2102

New Member
YetiShare User
Jan 15, 2013
85
0
0
Ok first of all Where and how would you add this and your Demo link does not work for me... and this code also has a link to your website.
 

ysmods

New Member
Jan 29, 2013
860
1
0
UK
www.ysmods.com
admin2102 said:
Ok first of all Where and how would you add this and your Demo link does not work for me... and this code also has a link to your website.
You can use this version which takes the info (site name etc...) from your own site settings
http://www.yetisharemods.com/topic/160-rss-feed-to-show-the-latest-50-files/