To check favicon using Google API
问题 How can we check favicon provided by Google API is the default globe? https://www.google.com/s2/u/0/favicons?domain=facebook.com returns the favicon of the facebook , where as https://www.google.com/s2/u/0/favicons?domain=test.com returns the globe as the favicon. How can we check if the favicon is default globe or not? 回答1: I made a function a while back what checks if the default globe icon is returned. function getFavicon($domain) { $data = file_get_contents('https://plus.google.com/_