如何编写PHP代码在站长站查询网站百度权重?
- 内容介绍
- 文章标签
- 相关推荐
本文共计98个文字,预计阅读时间需要1分钟。
通过网站长站获取网站百度权重的PHP代码如下:
phpfunction br($s) { $baidu=http://mytool.chinaz.com/baidusort.aspx?host=; $site=file_get_contents($baidu . $s); preg_match(/font color=\\(.*?)\/i, $site, $count); return $count[1][0];}
通过站长站获取网站百度权重的PHP代码function br($s){ $baidu="mytool.chinaz.com/baidusort.aspx?host=".$s; $site=file_get_contents($baidu); preg_match("/<font color=\"\">(.*)<\/font>/i",$site,$count); return $count[1][0]; } $br=br("xxx.com"); echo $br;
本文共计98个文字,预计阅读时间需要1分钟。
通过网站长站获取网站百度权重的PHP代码如下:
phpfunction br($s) { $baidu=http://mytool.chinaz.com/baidusort.aspx?host=; $site=file_get_contents($baidu . $s); preg_match(/font color=\\(.*?)\/i, $site, $count); return $count[1][0];}
通过站长站获取网站百度权重的PHP代码function br($s){ $baidu="mytool.chinaz.com/baidusort.aspx?host=".$s; $site=file_get_contents($baidu); preg_match("/<font color=\"\">(.*)<\/font>/i",$site,$count); return $count[1][0]; } $br=br("xxx.com"); echo $br;

