', $string); $string3 = explode('', $string2[1]); $news = str_replace('details.asp?section=27&issue=10063&article=','cariq.php?s=awsat&t=',$string3[0]); $news = str_replace('/01common/','http://www.aawsat.com/01common/',$news); $news = str_replace('/2006/','http://www.aawsat.com//2006/',$news); echo "$news"; } elseif ($s == "awsat") { $site= "http://www.aawsat.com"; $url = "http://www.aawsat.com/details.asp?section=27&issue=10063&article=".$t; $string = implode("\n", file($url)); $string2 = explode('', $string); $string3 = explode('', $string2[1]); $news = str_replace('/2006/','http://www.aawsat.com//2006/',$string3[0]); //$news = str_replace('src="','src="',$string3[0]); echo "$news"; } ?>