Home  >  Article  >  Backend Development  >  PHP Google code to get the favicon icon of the domain name

PHP Google code to get the favicon icon of the domain name

WBOY
WBOYOriginal
2016-07-25 09:00:041395browse
  1. /**
  2. * Get the favicon icon
  3. * Provided that Google is not reset, this **
  4. */
  5. function get_favicon($url){
  6. $url = str_replace("http://",'',$url);
  7. return "http ://www.google.com/s2/favicons?domain=".$url;
  8. }
  9. ?>
Copy code


Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn