Hi,
I use the following code (taken from a thread on this board) to generate an account activation key.
function key_create() {
$letters = " ABCDEFGHIJKLMOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890";
$len=strlen($letters);
$num="12";
for ($i=0; $i < $num; $i++)
{
$_rand=rand(0,$len);
$key.=$letters{$_rand};
}
return($key);
}
key_create() ;
$key_act = md5($key);
the problem is that is always returns the same value... am I missing something.
Thanks