', $string); $string3 = explode('
  ',$string2[1]); $news = str_replace('href="',' href="index.php?s=arabiya&t=',$string3[0]); $news = str_replace('src="..','SRC="'.$site,$news); $news = str_replace('src="','SRC="'.$site,$news); $news = str_replace('../img','http://www.alarabiya.net/img/',$news); echo "

"; echo "$news"; } elseif ($s == "arabiya") { $site= "http://www.alarabiya.net"; $url = "http://www.alarabiya.net/".$t; $string = implode("\n", file($url)); $string2 = explode('
ارسال', $string); $string3 = explode('', $string2[1]); //$news = str_replace('src="..','SRC="'.$site,$string3[0]); $news = str_replace('/staging/','http://www.alarabiya.net/staging/',$string3[0]); $news = str_replace('/img/','http://www.alarabiya.net/img/',$news); echo "

"; echo "$news"; } ?>