David T-G wrote:
 
> Bogdan --
> 
> ...and then Bogdan Stancescu said...
> %
> % ...as in...
> %
> % <?
> %   // Could've been done with ASCII sets, but this way
> %   // you can easily tweak the eligible characters.
> %   $eligible='abcdefghijklmnopqrstuvwxyz0123456789';
> %   $pwdLen=8;
> %   $password='';
> %   for($i=0;$i<$pwdLen;$i++) {
> %     $password.=$eligible[rand(0,strlen($eligible))];
> %   }
> %   echo("Your new password: $password\n");
> % ?>
> 
> Looks good to me.  You're too kind; I was going to leave the exercise to
> the student to complete :-)

  How about,

 $password = strtolower(substr(md5(uniqid(time())), 0, 7));

  Will get you a unique password consisting of 8 
 rather random lowercase alphanumerics.

-- 
Seks, seksić, seksolatki... news:pl.soc.seks.moderowana
http://hyperreal.info  { iWanToDie }   WiNoNa    )   (
http://szatanowskie-ladacznice.0-700.pl  foReVeR(  *  )
Poznaj jej zwiewne kształty... http://www.opera.com 007

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to