i i am tring to create fake e-mail address for spam bots to find
but i have a prob hen i run the script i only get something like this
a@f.com
now thers 2 things wrong with the outout one is that the "a" part will be random but "f" will be the domain for all of the emails that come out on the session the second is both "a" and "f" shoud be more then 1 letter. long. The second thing is that they should be a random # from 1 - 20 its hard to tell you so i will show u the code
<?
$ary = array("a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z");
$first = array();
$last = array();
$a = 1;
while ($a <= 10) {
unset($first);
unset($first);
$f = rand(1,20);
$s = rand(1,20);
$b = 1;
while ($b <= $f) {
$bf = rand(0,25);
$first[] = $ary[$bf];
$b++;
}
$c = 1;
while ($c <= $s) {
$bs = rand(0,25);
$last[] = $ary[$bs];
$c++;
}
echo ($first[0] . "@" . $last[0] . ".com<br />\n");
$a++;
}
?>
now i was thinking it was the unset()'s but well goto http://dlgnetworks.com/classes/spam.php and you will see
so what it should be is
"random ammount of letter@random ammount of letters.com"
Thank you
in advance