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.

function get_favicon($url){
  $url = str_replace("http://",'',$url);
  return "http://www.google.com/s2/favicons?domain=".$url;
}


If you enjoyed this article, Get email updates (It’s Free)
Karthikeyan KPHPfavicon,php
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. function get_favicon($url){ $url = str_replace('http://','',$url); return 'http://www.google.com/s2/favicons?domain='.$url; }