28-05-2008, 18:56
Nie potrzeba do tego żadnej większej filozofii. PHP oferuje nawet gotową funkcję do pobierania meta tagów get_meta_tags().
Pozdrawiam.
Kod PHP:
// Wyswietl meta tagi
var_dump( get_meta_tags('http://webmastertalk.pl') );
// Pobieranie title
$hCurl = curl_init('http://webmastertalk.pl');
curl_setopt($hCurl, CURLOPT_RETURNTRANSFER, true);
curl_setopt($hCurl, CURLOPT_FOLLOWLOCATION, true);
curl_setopt($hCurl, CURLOPT_TIMEOUT, 10);
$siteContent = curl_exec($hCurl);
// Dopasowanie title
preg_match('/<title>(.*?)<\/title>/ism', $siteContent, $title);
var_dump($title);
Pozdrawiam.
![[Obrazek: 2169fj2.png]](http://img261.imageshack.us/img261/6295/2169fj2.png)