Link to home
Start Free TrialLog in
Avatar of Loganathan Natarajan
Loganathan NatarajanFlag for India

asked on

Random password 8-12 character unique alpha-numeric code

I want to generate random password 8 - 12 character unique alpha-numeric code. How do I proceed with correct random unique ?
ASKER CERTIFIED SOLUTION
Avatar of striker46
striker46
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Wrong variable name. Again:


$chars = 8;
$pwd = md5(time());
 
$pwd= substr($pwd, 0, $chars - 1);
 
echo $pwd;

Open in new window

Avatar of Loganathan Natarajan

ASKER

thanks