Like this code?
Show the author your appreciation.
Nothing big, but useful in my opinion.
<?
/*
Programmed by Christian Haensel, christian@chftp.com, LINK1http://www.chftp.comLINK1
Exclusively published on weberdev.com.
If you like my scripts, please let me know or link to me.
You may copy, redistirubte, change and alter my scripts as long as this information remains intact
*/
$length = 6 ; // Must be a multiple of 2 !! So 14 will work, 15 won't, 16 will, 17 won't and so on
// Password generation
$conso =array( "b" , "c" , "d" , "f" , "g" , "h" , "j" , "k" , "l" ,
"m" , "n" , "p" , "r" , "s" , "t" , "v" , "w" , "x" , "y" , "z" );
$vocal =array( "a" , "e" , "i" , "o" , "u" );
$password = "" ;
srand ((double) microtime ()* 1000000 );
$max = $length / 2 ;
for( $i = 1 ; $i <= $max ; $i ++)
{
$password .= $conso [ rand ( 0 , 19 )];
$password .= $vocal [ rand ( 0 , 4 )];
}
$newpass = $password ;
// ENDE Password generation
echo $newpass . "<p>" ;
?>
Link Submition - Allow your visitors to submit links to the site. Categories : PHP , Arrays , Filesystem , Beginner Guides A very simple PHP single password cookie based login without usernames. Categories : PHP , Cookies , Security , Beginner Guides Selecting a random line from a text file Categories : PHP , Filesystem , Arrays , Beginner Guides A damaged image generator (class) for validating text.
CAPTCHA - Completely Automated Public Turing test to tell Computers and Humans Apart Categories : PHP , PHP Classes , Security , GD image library , Security Form Submission Using Array's Categories : PHP , HTML and PHP , Beginner Guides , Arrays Function to generate readable/remeberable random password Categories : PHP , Security , Security session out Timer Categories : PHP , Sessions , Security , Beginner Guides Random text quote Categories : PHP , Arrays , Beginner Guides How to display any array in several rows and columns of a table. Not just
in one column or in alternate rows. This example shows a nice color table
generated with PHP, but can be used with any array values(e.g. Database) Categories : Arrays , PHP , Miscellaneous , Beginner Guides , Graphics Beginners Array Functions Categories : PHP , Beginner Guides , Arrays Specify your connection settings and create a link to a MySQL database. Categories : PHP , PHP Classes , Databases , MySQL , Beginner Guides Upload Via FTP - an alternative to move_uploaded_file Categories : PHP , FTP , Beginner Guides Simple conversion functions to change MySQL dates to arrays, arrays to MySQL dates.
Categories : PHP , Arrays , Date Time , Databases , MySQL PHP and javascript mouseover, mouseout, and mousedown events Categories : PHP , Java Script , Form Processing , Beginner Guides grab the result of any calculation you submit to the Google Calculator. Categories : PHP , Arrays , Web Services , Regexps , Math.