/* create temporary password, use the fist 8 letters of a md5 hash */
$TIME = (string) time(); /* to avoid collisions */
$hash = md5('Anewpassword'.$email.$TIME);
$newpw = substr($hash,1,8);
/* create temporary password, use the fist 8 letters of a md5 hash */
$TIME = (string) time(); /* to avoid collisions */
$hash = md5('Anewpassword'.$email.$TIME);
$newpw = substr($hash,1,8);