I found a script that generates alpha code with 8 characters.
function generator($lenght=8)
{
for($i = 0; $i <= $lenght; $i++)
{
$uniqueKey .= chr(rand(97,122));
}
return $uniqueKey;
}
What are the chances it will eventually create a duplicate code.
I know it's a stupid question, but how many possible combinations is possible with 8 characters?