<?php
// Grab the favicon of a domain using Google s2 Converter
// Put this in your php file and then call it like:
// http://yourdomain.com/file.php?url=somedomain.com
function getFavicon(){
$linkurl = $_GET['url'];
$linkurl = str_replace("http://",'',$linkurl); // remove protocol from the domain
$imgurl = "http://www.google.com/s2/favicons?domain=" . $linkurl;
echo '<img src="' . $imgurl . '" width="16" height="16" />';
}
getFavicon();
?>