Thread: Pin System
View Single Post
Old 07-24-2009, 07:49 AM   #7 (permalink)
Hightower
The Acquainted
 
Hightower's Avatar
 
Join Date: May 2009
Location: Durham, UK
Posts: 134
Thanks: 9
Hightower is on a distinguished road
Default

The way I've done this in the past was:

PHP Code:
$pin md5(rand()); 
And then cut the $pin value down to the first 'x' amount of characters.
__________________
Hightower's Softpolio
Send a message via MSN to Hightower
Hightower is offline  
Reply With Quote