<?php

// @author Yusuf KOÇ ( Raiden ) www.ysfkc.com
// @copyright 2008


function getTitleAndMetaTag($url)
{
	$meta = get_meta_tags($url);
	
	$title = preg_match('#<title>(.*?)<\/title>#i',file_get_contents($url),$t);
	
	return array(
		'title' => $t[1],
		'keywords' => $meta['keywords'],
		'description' => $meta['description']
	);
}
$siteInfo = getTitleAndMetaTag('http://www.ysfkc.com');
echo "<pre>",print_r($siteInfo),'</pre>';
?>