PHP Classes

File: examples/getquota.php

Recommend this page to a friend!
  Classes of Christian Vigh  >  PHP Random.Org API  >  examples/getquota.php  >  Download  
File: examples/getquota.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: Initial release
Date: 6 months ago
Size: 619 bytes
 

Contents

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

        getquota.php -
        This script shows the quota associated to your ip address on www.random.org.
        The returned value is expressed in number of bits.
        Note that retrieving your quota does not affect your current quota...
   
     **************************************************************************************************************/
   
require ( 'examples.inc.php' ) ;

   
$random = new RandomOrg ( $agent_string ) ;
    echo
"Your current quota in bits is : " . $random -> GetQuota ( ) . "\n" ;

For more information send a message to info at phpclasses dot org.