السلام عليكم ورحمة الله وبركاته
لدي مشكلة بالـ RSS ,,, لدي هذا الملف
وعند تشغيله http://localhost/script/rss.xmlكود PHP:
<?
# +--------------------------------------------+
# + Al Droos Script +
# + By PHPx3.com +
# + faha1ad2@hotmail.com +
# +--------------------------------------------+
// aMINE - http://www.montadaphp.net/showthread.php?t=923
include ("include/connect.php");
include("include/rows.php");
header('(anti-spam-content-type:) text/xml');
?>
<rss version="2.0">
<channel>
<title>
<? print "$site_name"; ?>
</title>
<description><? print "$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><?=htmlentities(strip_tags($rows['subject'])); ?></title>
<description> <?=htmlentities(substr($rows['text'],0,60));?></description>
<link><? print "$site_url"; ?>/show-<?=$rows['id'];?>-1.html</link>
</item>
<? } ?>
</channel>
</rss>
يظهر لي :
لا يمكن عرض الصفحة XML
لا يمكن عرض إدخال XML باستخدام صفحة النمط XSL. الرجاء تصحيح الخطأ ثم النقر فوق الزر تحديث، أو إعادة المحاولة مرة أخرى لاحقاً. تم العثور على حرف غير صالح في محتوى النص. خطأ في معالجة المورد 'http://localhost/drs/rss.xml'. السطر 3، الموضع 8
<title>
فما الخطأ هنا ؟
وشكراً.