Re: [gversion] Auto-generated Password
Hi Greg,
I need more coffee - I forgot to tell you to add a '0,' before the length of the string you wanted.
substr() takes the string (in this case, the md5 encoded uniqid() then the start position ('0' is the beginning), then the length you want.
So, what you want is :
$_REQUEST['password'] = substr(md5(uniqid(rand(), true)),0 , 5);
for a five character password.
Let me know if that helps,
Tom