php ile herhangi bir siteden title ve description bilgisini alma

$formdangelen = 'https://foreverautohits.com/';

$site = file_get_contents(''.$formdangelen.'');

preg_match_all('@<title>(.*?)</title>@si',$site,$baslik_al);
preg_match_all('@<meta name="description" content="(.*?)" />@si',$site,$description_al);
   
$baslik = $baslik_al[1][0];
$description = $description_al[1][0];
   
echo $baslik.'<br>'.$description;

Yorumlar

Bu blogdaki popüler yayınlar

ForeverAutoHits manuel surf hediye kodu

NoFollow Backlink ve DoFollow Backlink Listesi