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 :-)


% 
% Bogdan


HTH & HAND

:-D
-- 
David T-G                      * There is too much animal courage in 
(play) [EMAIL PROTECTED] * society and not sufficient moral courage.
(work) [EMAIL PROTECTED]  -- Mary Baker Eddy, "Science and Health"
http://justpickone.org/davidtg/      Shpx gur Pbzzhavpngvbaf Qrprapl Npg!

Attachment: pgp00000.pgp
Description: PGP signature

Reply via email to