伪原创文章生成器代码

很多SEOer都喜欢伪原创,市面上也有很多伪原创文章的生成器,可能大家都在用。但可能很少有人知道伪原创文章是怎么生成的。今天给大家介绍一个很简单的伪原创文章的代码,如下:

< ?php
#define the text file
#we will get the words from
$content_file = “content.txt”;
 
#split the string, using each space as a pointer
$words = split(” “, join(“”, file($content_file)));
srand((double) microtime()*1000000);
 
#define how many words can
#be in the title (actually,
#thats the string we are going to optimize for)
$bh_title = rand(4,13);
$bh_real_title = ” “;
 
#here is the cycle for this random ‘title’
 
for($z=0;$z< $bh_title;$z++)
{
$index = rand(0, count($words)-1);
$array = array($bh_real_title, $words[$index]);
$bh_real_title = implode(” “, $array);
}
 
#here we can define the length of
#the content, I think 250-450 is good number, yeah ?
 
$length = rand(250,450);
$bh_real_content = ” “;
 
for($i=0;$i<$length;$i++)
{
$index = rand(0, count($words)-1);
$array = array($bh_real_content, $words[$index]);
$bh_real_content = implode(” “, $array);
}
?>

分享不易,请支持本站其他资源

印尼手机话费充值:http://recharge.amynik.com/
新版axureshop产品原型网:http://www.axureshops.com
AxureShop商城:http://axure.amynik.com/
情趣商城:http://sex.chanpindashi.com/
Axure工具集下载:http://www.chanpindashi.com/2019/12/02/1997.html
产品大师:http://www.chanpindashi.com/
源码商城:http://mall.amynik.com/list/1
axureshop产品原型网(旧版停止更新):http://axureshop.amynik.com/
产品经理论坛:http://bbs.amynik.com
淘宝优惠券:http://taobao.chanpindashi.com/
京东优惠券:http://jd.chanpindashi.com/?chanpindashi.com

最后编辑:2020年04月24日 ©著作权归作者所有

发表评论

×