', $string); $string3 = explode('', $string2[1]); $news = str_replace('href="',' href="sports.php?s=dtgez&t=',$string3[0]); $news = str_replace('src="','SRC="'.$site,$news); echo "$news"; } elseif ($s == "dtgez") { $site= "http://www.aljazeera.net"; $url = "http://www.aljazeera.net".$t; $string = implode("\n", file($url)); $string2 = explode('', $string); $string3 = explode('الجزيرة ', $string2[1]); $news = str_replace('src="','src="'.$site,$string3[0]); echo "$news"; } ?>