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? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.