透过 Google 获取网站 favicon 的方法

Spoony 70.9m2020-02-021253 次点击
<?php
if(isset($_GET['url'])){‌
$icon = file_get_contents("http://www.google.com/s2/favicons?domain=" . $_GET['url']);
if($icon){‌
header('Content-type:image/png');
echo $icon;
}
}
?>
收藏 ♥ 感谢
暂无回复

登录注册 后可回复。



GitHub