Jul 24, 2008

creat password with php?

Free Web Hosting, No Ads > CONTRIBUTE > Computers > Programming Languages > PHP Programming

free web hosting

creat password with php?

univers
how

Reply

sanweikui
what's your meaning? blink.gif

Reply

Magic-Node
If you mean how to get a random password, this is one way to do it:

CODE
function RandomPass( $passLength )
{
 $PassChars = 'ABVDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789';
 $Vouel = 'aeiou';
 $Pass = "";

 for ($index = 1; $index <= $passLength; $index++)
 {        
    if ($index % 3 == 0)
    {
      $randomNumber = rand(1,strlen($Vouel));
      $Pass .= substr($Vouel,$randomNumber-1,1);    
    }else
      {
        $randomNumber = rand(1,strlen($PassChars));
        $Pass .= substr($PassChars,$randomNumber-1,1);
      }
 }
 return $Pass;
}

$regpass = RandomPass(6);

 

 

 


Reply

CodeTeam
If you need a full membership system try this link :

http://www.phpfreaks.com/tutorials/65/0.php

Reply

mobileunlocking
thx for that iv been looking for somthing like that.

Thx mate

Mick

Reply

CosmicT
try this:

<?php
function createPassword($length) {
return substr(md5(uniqid(rand(), true)), 0, $length);
}
?>

Reply

DSTools
CosmicT, that code doesn't support passwords over 32 characters long. wink.gif

Reply



Got an Opinion! Express your Views! (no registration):-
Add your Reply/ Opinion/ Views/ Comments/ Suggestion/ Questions/ Queries etc.
Posts with decent grammar & English will be accepted and please refrain from profanities.
For asking a Question, We recommend you to sign-up (for free) so that you can track the topic easily.

Nature of your Post*: Opinion/ Reply/ Comments
Question/Query
Feedback to us.
       
Name   Email
Title/Question*

(Maximum characters: 10,000)
You have characters left.
Confirm Code:

Similar Topics

Keywords : creat password php

  1. Gahhh This Isn't Going Well Please Help! - It's a forgot password form in php! (12)
  2. Registration Form?! - Password Issue??? (6)
    How can I build the registration form with some additional function which is illustrated by attached
    file. When a user tries to type a password, that bar thing says neither it's strong nor weak, or
    medium. Just take a look at attachment...
  3. A Simple Password Page - I can't make one!!! (3)
    I'm trying to make a simple password page for one of my PHP experiments. Every time I try to
    post a password, however, it returns an error that the connection was "closed by the server". The
    entire code is only 3 pages. password.php: $rightuser = ""; $rightpass = ""; include
    ('getpassword.php'); if $_POST !== $rightuser { if $rightuser ==
    '' { ?>The username is incorrect. It should be blank. } else { ?>The username is
    incorrect. It should be . } } else { if $_POST !== $rightpass { if $...
  4. Password Strength / User Availablity Scripts ? - (2)
    many of u guys would already have noticed that now a days , on most of the websites , when some one
    sign in...as he puts his desired username in the textbox , the page shows that it is not available
    or it is available...without pushing any button etc.. and the second thing , when some one writes
    the password , on the same screen , it shows that password is weak or password is strong... i think
    it is done with php ... can some one give me a link to any page where i can access these scripts ?
    or some one can help me regarding this ?? Thanks for helping always....
  5. Phpbb Password Protector - Any Good Ones Out There? (3)
    I have searched and searhed and searched for a good Password Protection Mod for the PHPBB Forums,
    but i cannot find one that will work, i have uploaded the files necessary to the Admin/mods section,
    then i do what it says in the file that tells me how to do it, but they never work for me.. im
    Getting this.. QUOTE Warning: main(./extension.inc): failed to open stream: No such file or
    directory in /home/phillip/public_html/rpg/admin/mods/Password-protected forums
    0.5.1/phpbb_root_path/db_update.php on line 22 Warning: main(./extension.inc): failed to open
    stream: No...
  6. Mysql Password - (2)
    Hey guys quick question about trap 17s mysql version. How do i change the password to the database?
    I cant seem to find online help for this version anywhere. Any help is very apperciated!...



Looking for creat, password, php

Searching Video's for creat, password, php
advertisement



creat password with php?



 

 

 

 

ADD REPLY / Got an Opinion! Remove these ADs! RAPID SEARCH! Free Web Hosting [X]
Express your Opinions, Thoughts or Contribute more info. to help others.
Ask your Doubts & Queries to get answers, So that "Together We can help others!"
Register FREE for AD-FREE forum, Create your own topics, Ask Questions, track topics, setup subscriptions & notifications and Get a Free Website w/ Email and FTP.
500MB Space *No Ads*, CPanel, FTP, PHP, MySQL, EMails - 100% FREE