Arrow

why not something more random? | Peter's Custom Anti-Spam for WordPress | Forum

Back to the custom anti-spam plugin page

Please consider registering
guest

Log In

Lost password?
Advanced Search

— Forum Scope —

  

— Match —

   

— Forum Options —

   

Minimum search word length is 4 characters - maximum search word length is 84 characters

Topic RSS
why not something more random?
September 6, 2007
9:26 am
fawzma
Guest

Could someone please explain why you would have a set amount of words to choose from in the default installation? Is there some problem with using something like below?

$casString = "";
for($i=0;$i<8;$i++){
$casString = $casString.chr(rand(97,122));
}
$cas_text[] = $casString;

September 6, 2007
12:28 pm
Peter
Admin
Forum Posts: 841
Offline

Hi! The reason for the set amount of words is for the fun of displaying what you chose. I made a Random Anti-Spam version for those who need what you described.