Home >Backend Development >PHP Tutorial >Get the PHP code of website Baidu weight through the webmaster station

Get the PHP code of website Baidu weight through the webmaster station

WBOY
WBOYOriginal
2016-07-25 08:44:262161browse
Get the php code of website Baidu weight through the webmaster station
  1. function br($s){
  2. $baidu="http://mytool.chinaz.com/baidusort.aspx?host=".$s;
  3. $ site=file_get_contents($baidu);
  4. preg_match("/(.*)/i",$site,$count);
  5. return $count[1][ 0];
  6. }
  7. $br=br("http://xxx.com");
  8. echo $br;
Copy code

Webmaster Station, PHP


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