Account Verification
Moderator: General Moderators
Account Verification
How would you make a random number generator for something like a verification code? Is there an easy way to randomly generate numbers or letters?
- Christopher
- Site Administrator
- Posts: 13596
- Joined: Wed Aug 25, 2004 7:54 pm
- Location: New York, NY, US
As is often the case, the online manual may help.
http://www.php.net/manual/en/function.rand.php
There are some user examples that may be of interest.
http://www.php.net/manual/en/function.rand.php
There are some user examples that may be of interest.
(#10850)
rand(), mt_rand(), md5(), sha1(), hash(), uniqid(), substr() could all be useful for generating random strings.
Set Search Time - A google chrome extension. When you search only results from the past year (or set time period) are displayed. Helps tremendously when using new technologies to avoid outdated results.