Hi everyone, Someone help me to getting the Title of page using the PHP, i already getting all the meta tags using get_meta_tags function in php, but this function cannot rerieve the Title of the page, and i also want the title of the page with meta tage. Please help me in this matter. Thanks in advance.
function url_title($url) { $cont = @file_get_contents($url); $a = explode("<title>", $cont); $b = explode("</title>", $a[1]); if (!$b[0]){ $a = explode("<TITLE>", $cont); $b = explode("</TITLE>", $a[1]); } return $b[0]; } PHP: ignore the preg_match remark