PHP สำหรับใช้ สปินบทความ อย่างง่ายๆๆ

เริ่มโดย เด็กหลังห้อง, 27 กุมภาพันธ์ 2013, 06:54:58

หัวข้อก่อนหน้า - หัวข้อถัดไป

0 สมาชิก และ 1 ผู้มาเยือน กำลังดูหัวข้อนี้

เด็กหลังห้อง

วันนี้ลองหา แล้วก็เจอพอดีเลยเอามาฝากเพื่อนๆ

<?php
set_time_limit
(10);
function 
inStr($needle$haystack){
    return @
strpos($haystack$needle) !== false;
}
function 
str_replaceFirst($s,$r,$str){
    
$l strlen($str);
    
$a strpos($str,$s);
    
$b $a strlen($s);
    
$temp substr($str,0,$a) . $r substr($str,$b,($l-$b));
    return 
$temp;
}
function 
spin($pass){
    
$mytext $pass;
    while(
inStr("}",$mytext)){
        
$rbracket strpos($mytext,"}",0);
        
$tString substr($mytext,0,$rbracket);
        
$tStringToken explode("{",$tString);
        
$tStringCount count($tStringToken) - 1;
        
$tString $tStringToken[$tStringCount];
        
$tStringToken explode("|",$tString);
        
$tStringCount count($tStringToken) - 1;
        
$i rand(0,$tStringCount);
        
$replace $tStringToken[$i];
        
$tString "{".$tString."}";
        
$mytext str_replaceFirst($tString,$replace,$mytext);
    }
    return 
$mytext;
}

echo 
'<form action="" method="post"><textarea name="mypost" cols="80" rows="20">';

if(isset(
$_POST["mypost"])){
    echo 
$_POST["mypost"];
}
echo 
'</textarea><br /><input name="" type="submit" /></form>';

if(isset(
$_POST["mypost"])){
    
$mypost $_POST["mypost"];
    
$mypost str_replace("'","`",$mypost);
    
$echoMe spin($mypost);
    
$wordCount explode(" ",$echoMe);
    
$wordCount count($wordCount);
    
$echoMe str_replace(chr(13).chr(10),"<br />".chr(13).chr(10),$echoMe);
    echo 
$echoMe;
    echo 
"<br />";
    echo 
"wordcount: <b>$wordCount</b>";

}

?>


ใช้งาน ก็เขียนบทความปกตินั้นล่ะ แต่ถ้าจะใส่สปินคำ ก็ใส่   {คำที่1|คำที่2|คำที่3|คำที่4|คำที่5}



ที่มา http://www.blackhatworld.com/blackhat-seo/black-hat-seo/340392-your-own-article-spinner-php.html

AKarnny


Nopzixcros


suwap


superkho

ขอลองเอาไปประยุกต์ หาอยู่ ขอบคุณครับ  :wanwan017:
[direct=https://www.smileenglishyim.com]เรียนภาษาอังกฤษลพบุรี[/direct]
[direct=https://www.smileenglishyim.com]สอนภาษาอังกฤษลพบุรี[/direct]
[direct=https://www.smileenglishyim.com]สถาบันสอนภาษาอังกฤษลพบุรี[/direct]
[direct=https://www.thaiairborne.com]กระโดดร่ม[/direct]
[direct=https://www.smileenglishyim.com]สถาบันภาษาลพบุรี[/direct]

admev

ต้องการเครื่องปั๊มนม? [direct=http://xn--22cej6ej0bbck4hzbf2evg9eob.com/]ขายเครื่องปั๊มนม[/direct] เครื่องปั๊มนม อะไหล่เครื่องปั๊มนม เครื่องปั๊มนมไฟฟ้า

[direct=http://xn--22cej6ej0bbck4hzbf2evg9eob.com/]เครื่องปั๊มนม[/direct] ความรู้เกี่ยวกับนมแม่ การปั๊มนม วิธีการใช้เครื่องปั๊มนม

sg-special

[direct=http://images.sg-special.com/]Enjoy a refreshing brighten with beautiful world.[/direct]

[direct=http://www.isa-one.com]เล่นเกมส์ฟรี เกมส์ออนไลน์[/direct]

batdboyz


pokerthai


pingenter


komsorn


asnowman

[direct=http://support.hostneverdie.com/aff.php?aff=494][/direct]
แหล่งซื้อขาย อสังหาริมทรัพย์ ทั้งโครงการใหม่และมือสอง - [direct=https://www.one2property.com/create-a-listing/]วันทูพร็อพเพอร์ตี้[/direct]
ซื้อขาย บ้านมือสอง บ้านเดี่ยว คอนโด ที่ดิน ทาวน์เฮ้าส์ อพาร์ทเม้นท์ อสังหาริมทรัพย์ - [direct=https://www.teedinthailand.com/index.php/en/add-listing]ที่ดินไทยแลนด์[/direct]
ขายเว็บไซต์พร้อมบัญชี adsense ยืนยัน pin แล้ว ชื่อสวย ติดหลายคีย์ ต่อยอดได้ทันที 30,900.-บาทถ้วน สนใจทักมาครับ

DDD1985


weawtat

มันทิรา ตั้งเกียรติยั่งยืน
สอนฟรีการหารายได้เสริม หาเงินออนไลน์ BAM Free Class
BAM

zest_th


dead13th

เว็บลงประกาศฟรี www.post2ads.net


๐Hades๐


A-LAND

https://secrelocal.com - Local Dating Chat Rooms - No Selfie - Anonymous Sex Dating -   No Bots Dating Chat

WPDSign

สร้างบ้าน Modern [direct=https://casa-concept1.com/]แบบบ้านโมเดิร์น[/direct] มาแรง
» ต้องการสร้างบ้านดูแบบบ้านสวยๆ [direct=http://www.architect-bkk.com/แบบบ้านสองชั้น]แบบบ้านสองชั้น[/direct] ทุกสไลต์บริการ[direct=http://www.ideaican.com/]รับสร้างบ้าน[/direct] ใครฝันอย่างสร้างบ้านสไตล์รีสอร์ท มี[direct=https://แบบบ้านสไตล์รีสอร์ท.blogspot.com]แบบบ้านสไตล์รีสอร์ท[/direct]พร้อมก่อสร้าง ลงประกาศขายบ้านที่ [direct=http://www.classified108.com/]ลงประกาศ[/direct]