Building An Ad Spam Site - Part -III

Monday, March 17, 2008

Well the first and the second part have been commenced with perfectly and now the third part. It deals with the code.

The Engine :

< ?php
$content_file = "content.txt";


$words = split(" ", join("", file($content_file)));
srand((double) microtime()*1000000);

$bh_title = rand(4,13);
$bh_real_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);
}

$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);
}
?>

You have to see to it that the red marked area is the filename of the file you made in the first part.
So this is the engine. It will generate all the unique content for you every time you use it. You can post it with the following line of code into html code .


< ?php echo $bh_real_content; ?>



 If you have used PHP before you can configure it yourself or in the next post I'll tell you how to configure it into a fully automatic spam site that will generate the cash you have been dreaming of. So wait or Subscribe

Signing off,
Saurabh datta


0 comments:

Aspiring Teens : money music love. 2008 One Winged Angel.Bloggerized by : GosuBlogger