#******************************************************************************
# function to create random password
#******************************************************************************
function createRandomPassword() {
$chars = "abcdefghijkmnopqrstuvwxyz023456789";
srand((double)microtime()*1000000);
$i = 0;
$pass = '' ;
while ($i <= 7) {
$num = rand() % 33;
$tmp = substr($chars, $num, 1);
$pass = $pass . $tmp;
$i++;
}
return $pass;
}
#******************************************************************************
Showing posts with label function to create random password. Show all posts
Showing posts with label function to create random password. Show all posts
[Monday, January 07, 2008
|
0
comments
]
Popular Posts
- Elgg : The most popular open source social networking platform
- Mysql optimization by configuring the query cache
- creating dynamic elements in HTML using Javascript.
- Pattern Matching in mysql
- some php questions
- Creating Custom Module in VtigerCRM
- php questions
- How to create a plugin in elgg.
- php Questions
- question regarding socket