plodos Posted March 5, 2008 Share Posted March 5, 2008 rss.php <? include "dbconfig.php"; header("Content-type: text/xml\n\n"); echo "<?xml version=\"1.0\" encoding=\"ISO-8859-1\"?> <rss version=\"2.0\"> <channel> <title>World</title> <description>WAS</description> <copyright>Copyright 2008, http://www.worldofsc.org</copyright> <link>http://www.worldofsc.org/notice/rss.php</link> <language>ENG</language> "; ?> <? $a=mysql_query("select * from notice_table ORDER BY user_id DESC LIMIT 10") or die(mysql_error()); while ( $data = mysql_fetch_array($a) ) { $id = $data['user_id']; $title=$data['title']; $date=$data['date']; $notice=$data['notice']; ?> <item> <title><? echo $title; ?></title> <pubDate><? echo $date; ?></pubDate> <description><? echo $notice; ?></description> <link>http://www.worldofsc.org/notice/?exploit=<? echo $id; ?></link> </item> <? } echo " </channel> </rss>"; ?> I create a rss.php file, I write this script.. by the help of FTP, I upload the web... When I click this link http://www.worldofsc.org/notice/rss.php It shows nothing, no input no output.. but when I look in the Firefox "show page source code", I can see the information like that <item> <title>Coca Cola</title> <pubDate>01.03.2090</pubDate> <description>For more info <a href="http://www.cocacola.com">GO!</a> <br><br> <link>http://www.worldofsc.org/notice/?exploit=61</link> But how can I see the output in the rss.php page? Link to comment https://forums.phpfreaks.com/topic/94474-rss/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.