[PHP-DB] random created numbers and letters

2001-09-25 Thread Saulius Jankauskas

Hello,

Can you give me a piece of code, where I could see, how to create random
written numbers and letters?

For example, I'd like to give my visitor temporary passwrord: BS0147. To
another HF0124 and so on...

How to generate it with PHP?

Sorry, if I didn;t explained clearly what I want.

Thanks.




-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP-DB] random created numbers and letters

2001-09-25 Thread Andreas D. Landmark

At 25.09.2001 22:46, Saulius Jankauskas wrote:
Hello,

Can you give me a piece of code, where I could see, how to create random
written numbers and letters?

For example, I'd like to give my visitor temporary passwrord: BS0147. To
another HF0124 and so on...

How to generate it with PHP?

Sorry, if I didn;t explained clearly what I want.

Thanks.

Did you read _anything_ in the manual before posting?!

(and how on earth is this related to php-DB ?!)

check out

rand()
srand()
mt_rand()
mt_srand()

and so on... and I'll leave it up to the reader to decide how to create
a password-fish out of a row of numbers...

-- 
Andreas D Landmark / noXtension
Real Time, adj.:
 Here and now, as opposed to fake time, which only occurs there
and then.


-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]