PHP Classes

File: passwdgen_test.php

Recommend this page to a friend!
  Classes of Kevin Gilbertson   PasswordGenerator   passwdgen_test.php   Download  
File: passwdgen_test.php
Role: Example script
Content type: text/plain
Description: Test file for PasswordGenerator
Class: PasswordGenerator
Simple class to generate random passwords.
Author: By
Last change: Added test to show image.
Date: 21 years ago
Size: 567 bytes
 

Contents

Class file image Download
<?php
/***
* This is a test file for the PasswordGenerator Class.
* This class is designed to create random passwords to
* set up initial user accounts.
* sample at http://www.gilbertsonconsulting.com/test/passwdgen_test.php
***/
?>
<H4>Text Password</h4>

<?php

require_once("PasswordGenerator.php");
$Password = new PasswordGenerator(10, 20);

$RandPassword = $Password->getHTMLPassword();
print(
$RandPassword);


?>

<H4>Image Password</h4>
<img src="passwdgen_imgtest.php" />

<p>Please refresh your browser to see another password.</p>