مشكله في سكرت اخبار؟
هذا استكربت ياتي باخبار الجزيره
موجود في النسخة 7.1 من مجلة نيوك (تعريب مغترب)
اردت نقل الملف الى root واجله يعمل اسفل الصفحة كماهو موجود الان في المنتدى حقي
للاسف فشلت
حاولت تركه مكانه وربطه بالصفحة ارئيسيه اشضا نفس الخطاء
هذا هو الخطأ الذي يظهر
----------------------------------------
Warning: Cannot modify header information - headers already sent by (output started at /home/shabaab/public_html/nuke/blocks/block-Last_news.php:2) in /home/shabaab/public_html/nuke/blocks/block-Last_news.php on line 5
--------------------------------------
في النهاية ربطة الصفحة بموقع فيصل كما هو الان
لكن اريد ان يعمل السكريبت من عندي وليس من موقع اخر
--------------------------
ملف السكريبت كامل هو
<?php
if (eregi("block-Last_news.php", $PHP_SELF)) {
Header("Location: index.php");
die();
}
$url = "http://www.aljazeera.net/news/arabic/";
$string = implode("\n", file($url));
$string2 = explode("<!--start second News-->", $string);
$string3 = explode("<!--end second News-->", $string2[1]);
$news = str_replace('href="../../news/arabic/',"href=\"$url",$string3[0]);
$news = str_replace('>- ',">",$news);
preg_match_all("/href[[:space:]]*=[[:space:]]*"."[\"']{0,1}([^\"'> ]+)/i",$news,$arr,PREG_SET_ORDER);
preg_match_all("|>([^<]*)</a|i",$news,$arr_text,PREG_SET_ORDER);
$content .= "<span dir=rtl><marquee direction=\"up\" scrollamount= \"2\" scrolldelay= \"90\" onmouseover='this.stop()' onmouseout='this.start()'>";
for ($i=0;$i<count($arr);$i++)
if ($arr_text[$i][1]!="")
$content .= " <p dir=\"rtl\"><b><font face=\"\"arial\"\">. </font></b>
<font face=\"arial\" color=\"#808080\" size=\"5\"><B>
<a href=\"".$arr[$i][1]."\" target=\"_blank\">".$arr_text[$i][1]."</a> </B></font>
</p>
";
$content .= "</marquee></span>";
?>
----------------------------
السطر الخامس هو
Header("Location: index.php");
-----------------------
ارجوا المساعده --- او اذا هناك اسكرت جاهز غير هذا -- فاسعفوني به
وشكرا
__________________
هذة العضوية يستخدمها شخصان