php 读取 sogourank 与 ChinaRank信息
function sogouRank($domain)
{
$rank = '';
$pr = 0;
$content = get_content('http://www.sogou.com/web?query='.$domain);
if(preg_match("/([0-9]{1,})/", $content, $matches))
{
$pr = intval($matches[1]);
$width = ceil(65*$pr/100);
$rank = '';
}
$rank = ''.$rank.' '.$pr;
return $rank;
}
function ChinaRank($domain)
{
$rank = '';
$content = get_content('http://www.chinarank.org.cn/detail/Info.do?url='.$domain);
if(preg_match("/排名(.*)/", $content, $matches))
{
$p = trim(str_replace('', '', $matches[1]));
$p = explode("
已抢64937个
抢已抢27391个
抢已抢14897个
抢已抢7421个
抢已抢9287个
抢已抢18655个
抢