<?php
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.stackoverflow.com/");
?>
When i run this script it returns the error
max_execution_time exceeds 30 second.
I don't want to increase the max_execution_time but i want to decrease the script run time.