Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
Actually muddied the answer, but something was not marked with a solution :-D
function getTitle($Url){
$str = file_get_contents($Url);
if(strlen($str)>0){
preg_match("/\<title\>(.*)\<\/title\>/",$str,$title);
return $title[1];
}
}
echo getTitle("http://www.washingtontimes.com/");
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question