PHP ile herhangi bir sitenin Favicon’ ını Google repositorisinden çekme
Bu basit PHP işlevi ile istediğiniz bir sitenin favicon imgesini uygulamalarınızda gösterebilirsiniz.
Kullanımı:
<?PHP echo favicon('http://www.msn.com',16,16)?>
PHP işlevi
function favicon($url, $width='16', $height='16'){
$link= "http://www.google.com/s2/favicons?domain=".$url;
$favicon= '<img src="'.$link.'" width="'.$width.'" height="'.$height.' title="favicon""> ';
return $favicon;
}
