اشتغل الحمدلله تمام بعد تعديلات, لكن يوجد فيه مشكله باللغه وفي اظهار <title>
كود PHP:
<?
header('(anti-spam-content-type:) text/xml');
echo "<?xml version=\"1.0\" encoding=\"windows-1256\"?>\n\n";
echo "<!DOCTYPE rss PUBLIC \"-//Netscape Communications//DTD RSS 0.91//EN\"\n";
echo " \"http://my.netscape.com/publish/formats/rss-0.91.dtd\">\n\n";
echo "<rss version=\"2.0\">\n\n";
echo "<channel>\n";
echo "<title>".htmlspecialchars($site_name)."</title>\n";
echo "<link>$sie_url</link>\n";
echo "<description>".htmlspecialchars($meta_open)."</description>\n";
# +--------------------------------------------+
# + Al Droos Script +
# + By PHPx3.com +
# + faha1ad2@hotmail.com +
# +--------------------------------------------+
// aMINE - http://www.montadaphp.net/showthread.php?t=923
// Some Edit's Is From Nuke
include ("include/connect.php");
include("include/rows.php");
//
?>
<title>
<? print htmlspecialchars($site_name); ?>
</title>
<description><? print htmlspecialchars($meta_open); ?></description>
<link><? print $_SERVER['SERVER_NAME']; ?></link>
<? $myss = mysql_query("SELECT `subject`,`id`,`text` FROM `drs_text` ORDER BY `id` DESC LIMIT 0,57");
while($rows = mysql_fetch_array($myss)){
?>
<item>
<title><? print "$subject"; ?></title>
<link><? print "$site_url"; ?>/show-<?=$rows['id'];?>-1.html</link>
<description> <?=htmlentities(substr($rows['text'],0,60));?></description>
</item>
<? } ?>
</channel>
</rss>