Jump to content

RSS ?


plodos

Recommended Posts

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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.