Hi,

> function gen_password($length = 8) {
> 
>   $chars =
"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789";

[snip]

Just as a tip - if you want to save hassle for yourself and your users,
remove the following characters from that string:

- 1 (number one)
- l (lower-case letter L)
- I (upper-case letter I)
- 0 (number zero)
- O (upper-case letter O)

These often look the same (for instance, in Courier New at 9pt, 1/l and 0/O
are pixel-perfect matches of each other) and can cause major confusion
amongst less technically gifted users :-)

Cheers
Jon


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

Reply via email to