要我帮设计推荐信息摘要:

增加到帝国CMS自定义函数里PHP CODEfunction get_sogourank($url) {$data = get_url_content("http://rank.ie.sogou.com/sogourank.php?ur=$url");if (preg_match('/sogourank=(d+)/i', $data, $mat

增加到帝国CMS自定义函数里


PHP CODE


function get_sogourank($url) {

$data = get_url_content("http://rank.ie.sogou.com/sogourank.php?ur=$url");

if (preg_match('/sogourank=(d+)/i', $data, $matches)) {

$rank = intval($matches[1]);

} else {

$rank = 0;

}

return $rank;

}

 


分享海报