站长圈

伪原创文章生成器PHP源代码

分类:计算机/互联网 时间:2020-04-25 08:37 浏览:632
概述
很多SEOer都喜欢伪原创,市面上也有很多伪原创文章的生成器,可能大家都在用。但可能很少有人知道伪原创文章是怎么生成的。今天给大家介绍一个很简单的伪原创文章的代码,如下:< ?php   #define the t
内容

很多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

相信懂点php的人一看就明白了。就是整了很多文章,放在一个文件里,然后随机取一些文字,做title和content。当然,title和content的长度你可以自己设定,你还可以设置自己希望生产的其他内容,如keywords,description等。在你希望输出生产的伪原创内容的地方放上如下代码就可以了:标题处放:内容处放:一个最简单的伪原创工具就这样完成了。你可以自己看一下效果。


评论
资讯正文页右侧广告
底部广告
网站首页  |   关于我们  |   广告合作  |   联系我们  |   隐私条款  |   免责声明  |   网站地图
CopyRight 2014-2024 站长圈 | ICP证:粤ICP备16065033号-15
联系客服
技术咨询 售前小郑 客服明明 联系客服
0769-33314958
手机版

扫一扫进手机版
返回顶部