السلام عليكم
اخواني عندي مشكل في rss
انا منتداي ترميزه utf-8
هل من حل لأضافة تغذية windows-1235
هاهو كود ان يوجد طريقة :
	كود PHP:
	
<?php
ob_start();
if(ulv != 4):
header('location:index.php');
exit;
endif;
$sql = @mysql_query("select * from Rss where status = '1'") or die(mysql_error());
if(mysql_num_rows($sql) > 0)
{
 while($MyRows = @mysql_fetch_array($sql))
 {
 $Rss = @file_get_contents($MyRows['url']) or die('لم يستطع فتح الرابط !!');
preg_match_all("#<title>(.*?)</title>#s",$Rss,$T_SUBJECT);  
$count = count($T_SUBJECT[0]);
$T_SUBJECT[0] = str_replace('<title>',' ',$T_SUBJECT[0]);
$T_SUBJECT[0] = str_replace('</title>',' ',$T_SUBJECT[0]);
preg_match_all("#<description>(.*?)</description>#s",$Rss,$T_MESSAGE);  
$count = count($T_MESSAGE[0]);
$T_MESSAGE[0] = str_replace('<description><![CDATA[',' ',$T_MESSAGE[0]);
$T_MESSAGE[0] = str_replace('</description>]]>',' ',$T_MESSAGE[0]);
for($i=0;$i<$count;$i++){
@mysql_query("insert into ".tp."topics 
   set 
   t_subject = '".$T_SUBJECT[0][$i]."',
   t_date = '".time()."',
   t_message = '".$T_MESSAGE[0][$i]."',
   t_author = '".$MyRows['author']."',
   forum_id = '".$MyRows['forumid']."',
   cat_id = '".forum('cat_id',$MyRows['forumid'])."'
   ");
   @mysql_query("update ".tp."forums set f_topics = f_topics + 1 where forum_id = '".$MyRows['forumid']."'");
 }
 
 }
}
header('location:index.php?mode=RssManager');
?>