tour93 Posted July 28, 2010 Report Share Posted July 28, 2010 Hello, I tried to create a RSS feed on my site with php and mysql.<?php header("Content-Type: application/rss+xml; charset=ISO-8859-1");require_once ('mysql_connect.php'); $rssfeed = '<?xml version="1.0" encoding="ISO-8859-1"?>'; $rssfeed .= '<rss version="2.0">'; $rssfeed .= '<channel>'; $rssfeed .= '<title>My RSS feed</title>'; $connection = @mysql_connect(DB_HOST, DB_USER, DB_PASSWORD) or die('Could not connect to database'); mysql_select_db(DB_NAME) or die ('Could not select database'); $query = "SELECT * FROM rsstable"; $result = mysql_query($query) or die ("Could not execute query"); while($row = mysql_fetch_array($result)) { extract($row); $rssfeed .= '<item>'; $rssfeed .= '<link>' . $row['url'] . '</link>'; $rssfeed .= '</item>'; } $rssfeed .= '</channel>'; $rssfeed .= '</rss>'; echo $rssfeed;?>I set up Utorrent to download the feed but it cannot see anything.What is wrong with the feed? Link to comment Share on other sites More sharing options...
GTHK Posted July 28, 2010 Report Share Posted July 28, 2010 What do you get when you try to fetch the page? Try comparing to an RSS feed from say mininova. Link to comment Share on other sites More sharing options...
tour93 Posted July 28, 2010 Author Report Share Posted July 28, 2010 <?xml version="1.0" encoding="ISO-8859-1"?><rss version="2.0"><channel><title>My RSS feed</title><item><link>http://.........torrent</link></item></channel></rss> Link to comment Share on other sites More sharing options...
GTHK Posted July 28, 2010 Report Share Posted July 28, 2010 http://www.mininova.org/rss.xml Link to comment Share on other sites More sharing options...
tour93 Posted July 28, 2010 Author Report Share Posted July 28, 2010 ok, it's loaded with details, title, size, ratio, time, but what does utorrent really need in fact?A tilte and the download link? Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.