السلام
طلب بسيط يااخوان
بلوك اخبار ال بى بى سى للمجلة.
يحتاج الى تعديل.
كود PHP:
}
function bbc() {
OpenTable();
echo "<table width=\"100%\" border=\"0\" align=\"right\">"; // echo "</table>";
$url = "http://news.bbc.co.uk/low/arabic/news/default.stm";
$site= "http://news.bbc.co.uk";
$string = implode("\n", file($url));
$string2 = explode('<h2>الصفحة الرئيسية</h2>', $string);
$string3 = explode("<hr />", $string2[1]);
$news = $string3[0];
// $news = str_replace("?????? ????????","",$string3[0]);
// $news = str_replace("<hr>","",$news);
// $news = str_replace("<h4>???? ?? ???????</h4>","",$news);
$news = str_replace('href="','href="'.$site,$news);
echo "$news";
echo "</table>";
CloseTable();