Login   Register  
PHP Classes
elePHPant
Icontem

File: example.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of pugliese fabrizio  >  DF_Captcha  >  example.php  >  Download  
File: example.php
Role: Example script
Content type: text/plain
Description: Example
Class: DF_Captcha
Generate images for CAPTCHA validation
Author: By
Last change:
Date: 6 years ago
Size: 519 bytes
 

Contents

Class file image Download
<?php
#########################################################
#                                                       #
#   Example class DF_Captcha for a one simple captcha   #
#                                                       #
#########################################################

    
require_once("class.captcha.php");

    
$c = new DF_Captcha(37260"fff");
    
$c->noise_granular 0;
    
$c->noise_square 0;
    
$c->setLenCode(7);
    
$c->drawImage();
    
$_SESSION["code"] = $c->getCode();

?>