Get domain favicon using PHP and Google
These days, many websites or webapps are using favicons from other websites. Displaying a favicon on your own site is pretty easy using Google and some PHP.
1.function get_favicon($url){
2.$url = str_replace("http://",'',$url);
3.return "http://www.google.com/s2/favicons?domain=".$url;
4.}
» Credits: Snipplr
Additional Metadata
Type::snippet Origin:: 10 super useful PHP snippets - CatsWhoCode.com Language:: PHP