激情小说强奸乱伦亚洲色图_欧美xxxx性受黑人xyx性爽_国产www亚洲а∨天堂一区_日本无码线亚洲中文精品_国产女厕所盗摄老师厕所嘘嘘_香蕉视频在线观看亚洲_久久国产亚洲AV无码麻软件_18禁白浆欧美一区二区三区_国产午夜av无码无片久久96_国产成人精品福利视频

27
18911184380
當(dāng)前位置:首頁(yè) > 資訊 > 建站知識(shí)

基于discuz在線(xiàn)分詞批量?jī)?yōu)化Dedecms文章關(guān)鍵詞

2011-12-22 酷站科技

 根據(jù)discuz線(xiàn)上詞性標(biāo)注大批量?jī)?yōu)化Dedecms文章關(guān)鍵字

dedecms自身內(nèi)置tag(keywords)獲取作用(北京市網(wǎng)站制作),但詞性標(biāo)注一直不足精準(zhǔn)。自然,針對(duì)日升級(jí)十?dāng)?shù)篇且對(duì)seo精準(zhǔn)實(shí)行的客戶(hù)而言,手工制作鍵入能更強(qiáng)的操縱(高檔網(wǎng)站建設(shè))。但針對(duì)主題風(fēng)格較為廣泛、內(nèi)容升級(jí)量大的客戶(hù)而言,dede split是并不大極致的。

  discuz線(xiàn)上詞性標(biāo)注是一個(gè)免費(fèi)在線(xiàn)的提詞插口。后有數(shù)十萬(wàn)中文論壇、supsite客戶(hù),針對(duì)情境、體細(xì)胞詞典的健全有大量的數(shù)據(jù)信息?!∵@一微信小程序是根據(jù)discuz線(xiàn)上詞性標(biāo)注批量更新已發(fā)內(nèi)容的keywords(tag),假如信息量大(超過(guò)五萬(wàn))的或是云虛擬主機(jī)客戶(hù)得話(huà),最好是自然環(huán)境搭到當(dāng)?shù)?。速率?huì)快一點(diǎn)。

  操作方法,cms安裝文件,在建c.php,拷入以下幾點(diǎn),自身相匹配編號(hào)用notepad設(shè)定相對(duì)gbk或utf8。運(yùn)作 yourwebsite/c.php?id=1

<?php
require_once(dirname(__FILE__).”/include/common.inc.php”);

$id = isset($id) && is_numeric($id) ? $id : 0;

for ($a=$id; $a<$id 10; $a ){

 $row = $dsql->GetOne(” SELECT arc.title,tp.body FROM `@__archives` arc LEFT JOIN `@__addonarticle` tp ON arc.id=tp.aid where arc.id=’$a’ “);
 if(is_array($row))
 {
  $title = $row['title'];
  $body = $row['body'];
  $keywords=zhgetkey($title.$body);
  $dsql->ExecuteNoneQuery(” Update `@__archives` set keywords=’$keywords’ where id=’$a’ “);
  echo $a.’:’.$keywords.’<br />’;
 }
}
 
 if ($a>80000){break;}

echo “<script>”;
echo “setTimeout(”location.replace(‘c.php?id=$a’)”,0)”;
echo “</script>”;

function zhgetkey($content s){
$rows = strip_tags($contents);
$arr = array(‘ ‘,’ ‘,”s”, “rn”, “n”, “r”, “t”, “>”, ““”, “””,”<br />”);
$qc_rows = str_replace($arr, ”, $rows);
if(strlen($qc_rows)>2400){
$qc_rows = substr($qc_rows, ’0′, ’2400′);
}
$data = @implode(”, file(“http://keyword.discuz.com/related_kw.html?title=$qc_rows&ics=gbk&ocs=gbk”));
preg_match_all(“/<kw>(.*)A[(.*)]](.*)></kw>/”,$data, $out, PREG_SET_ORDER);
$key=”";
for($i=0;$i<5;$i ){
$key=$key.$out[$i][2];
if($out[$i][2])$key=$key.”,”;
}
return $key;
}

function cutstr_html($string, $sublen)   

 {

  $string = strip_tags($string);

  $string = preg_replace (‘/n/is’, ”, $string);

  $string = preg_replace (‘/ | /is’, ”, $string);

  $string = preg_replace (‘/&nbsp;/is’, ”, $string);

    preg_match_all(“/[x01-x7f]|[xc2-xdf][x80-xbf]|xe0[xa0-xbf][x80-xbf]|[xe1-xef][x80-xbf][x80-xbf]|xf0[x90-xbf][x80-xbf][x80-xbf]|[xf1-xf7][x80-xbf][x80-xbf][x80-xbf]/”, $string, $t_string);  

  if(count($t_string[0]) – 0 > $sublen) $string = join(”, array_slice($t_string[0], 0, $sublen)).”…”;  

  else $string = join(”, array_slice($t_string[0], 0, $sublen));

    return $string;

 }

?>

來(lái)源于申明:以上內(nèi)容一部分(包括照片、文本)來(lái)自互聯(lián)網(wǎng),若有侵權(quán)行為,請(qǐng)立即與本網(wǎng)站聯(lián)絡(luò)(010-57218159)。
如沒(méi)特殊注明,文章均為酷站科技原創(chuàng),轉(zhuǎn)載請(qǐng)注明來(lái)自http://www.ttscar.com.cn/jianzhanzhishi/4248.html
聯(lián)系專(zhuān)業(yè)的商務(wù)顧問(wèn),制定方案,專(zhuān)業(yè)設(shè)計(jì),一對(duì)一咨詢(xún)及其報(bào)價(jià)詳情
服務(wù)熱線(xiàn)服務(wù)熱線(xiàn) 18911184380
聯(lián)系我們 contact us
18911184380
0531-88903031 — 濟(jì)南分部

+

酷站科技為你提供上門(mén)/網(wǎng)站策略方案

留下聯(lián)系方式,我們將會(huì)在一個(gè)工作日內(nèi)與你聯(lián)系

隱私條款信息保護(hù)中,請(qǐng)放心填寫(xiě)