<?php // The letter l (lowercase L) and the number 1 // have been removed, as they can be mistaken // for each other. function RandomPass() { // Comment the first line to exclude special characters $chars = "!@#$%^&*"; $chars .= "abcdefghijkmnopqrstuvwxyz023456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"; srand((double)microtime()*1000000); $i = 1; $pass = '' ; // Number of digits we'd like to have our password be $n = 8; while ($i < $n) { $num = rand() % strlen($chars); $tmp = substr($chars, $num, 1); $pass = $pass . $tmp; $i++; } return $pass; } // Usage $password = RandomPass(); echo "Random password is: $password"; ?>
Posts tagged create
Web Dev> PHP created random password
Gimp> Gradient text
Select Text Tool Click and drag inside your image to size your textbox Enter in the desired text Select the Select by Color Tool Make sure Feather Edges is NOT checked Click on your text (make sure to get the colored portion, not just the box) Select the Blend Tool Select the desired Gradient by clicking on the image next to Gradient: Drag your mouse from one point in your text to another, the gradient will be applied to the entire area you've selected.
Note: The wider you make it the more color range you will get and the better your gradient will look.