PHP Classes

File: examples/getpasswords.php

Recommend this page to a friend!
  Classes of Christian Vigh   PHP Random.Org API   examples/getpasswords.php   Download  
File: examples/getpasswords.php
Role: Example script
Content type: text/plain
Description: Example script
Class: PHP Random.Org API
Generate random values using random.org
Author: By
Last change: Update of examples/getpasswords.php
Date: 3 months ago
Size: 738 bytes
 

Contents

Class file image Download
<?php
   
/**************************************************************************************************************

        getpasswords.php -
        Echoes the number of random-generated passwords specified by the $count variable.
        The passwords length is specified by the $length variable.
   
     **************************************************************************************************************/
   
require ( 'examples.inc.php' ) ;

   
$random = new RandomOrg ( $agent_string ) ;
   
$count = 3 ;
   
$length = 19 ;

   
$values = $random -> GetPasswords ( $count, $length ) ;

    echo (
"Getting $count random passwords of length $length :\n" ) ;
    echo (
"\t" . implode ( ', ', $values ) . "\n" ) ;

   
display_statistics ( $random ) ;