Login   Register  
PHP Classes
elePHPant
Icontem

File: getcaptcha.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of musthafa  >  Customizable CAPTCHA  >  getcaptcha.php  >  Download  
File: getcaptcha.php
Role: Example script
Content type: text/plain
Description: captcha loader - generates captcha image for form.php
Class: Customizable CAPTCHA
Generate and validate CAPTCHA images
Author: By
Last change:
Date: 4 years ago
Size: 468 bytes
 

Contents

Class file image Download
<?php
session_start
(); // captcha class uses session to hold captcha security code 
include "class.captcha.php"

$cap = new Captcha(); // instantiate Captcha class

/* then, customize captcha image if required */
$cap->setBGColor(255,0,0);  // sets background color of image
$cap->setTextColor(0,255,0); // sets the text color
$cap->setSize(100,40); // sets the image size. 
/* all the above methods are optional */

$cap->showImage(); // outputs captcha image.


?>