Hi,
I ended up using this one:
<?
/ Generate password. (i.e. jachudru, cupheki) /
function genpassword($length){
srand(time());
$vowels = array("a", "e", "i", "o", "u");
$cons = array("b", "c", "d", "g", "h", "j", "k", "l", "m", "n", "p", "r", "s", "t", "u", "v", "w", "tr",
"cr", "br", "fr", "th", "dr", "ch", "ph", "wr", "st", "sp", "sw", "pr", "sl", "cl", "an", "ba", "bak", "bo", "bom", "bru", "can","con",
"cro", "da", "di", "dom", "er", "em", "et");
$num_vowels = count($vowels);
$num_cons = count($cons);
for($i = 0; $i < $length; $i++){
$suggestpass .= $cons[rand(0, $num_cons - 1)] . $vowels[rand(0, $num_vowels - 1)];
}
return substr($suggestpass, 0, $length);
}
$suggestpass = genpassword(6) ;
Print"$suggestpass"
?>