PHP Classes

File: example.php

Recommend this page to a friend!
  Classes of Vincent   Password Generate   example.php   Download  
File: example.php
Role: Example script
Content type: text/plain
Description: Example file
Class: Password Generate
Generate random passwords with given criteria
Author: By
Last change:
Date: 18 years ago
Size: 379 bytes


Class file image Download
include 'class.password.php';

// default is 10 character lentth
$pas = new password();
// generate password include uppercase, lowercase & number
echo $pas->generate() . '<br>';
// generate password not include lowercase
$pas->lowercase = false;
$pas->generate() . '<br>';
// generate password include spec char
$pas->specchar = true;
$pas->generate() . '<br>';