Ana Sayfa Programlama PHP PHP ile herhangi bir sitenin Favicon’ ını Google repositorisinden çekme

PHP ile herhangi bir sitenin Favicon’ ını Google repositorisinden çekme

238
0
yararlı php kodları
yararlı php kodları

Bu basit PHP işlevi ile istediğiniz bir sitenin favicon imgesini uygulamalarınızda gösterebilirsiniz.

<?PHP echo favicon('http://www.msn.com',16,16)?>

//KULLANIMI ->
   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;
    }

CEVAP VER

Lütfen yorumunuzu giriniz!
Lütfen isminizi buraya giriniz