PHP Classes

File: captcha.php

Recommend this page to a friend!
  Classes of Ver Pangonilo   Simple CAPTCHA   captcha.php   Download  
File: captcha.php
Role: Example script
Content type: text/plain
Description: Simple Captcha configuration file
Class: Simple CAPTCHA
Generate and verify CAPTCHA validation images
Author: By
Last change:
Date: 17 years ago
Size: 1,004 bytes


Class file image Download


//Background Image
$config['BackgroundImage'] = "white.png";

//Background Color- HEX
$config['BackgroundColor'] = "FFFC00";

//image height - same as background image

//image width - same as background image

//text font size

//text font style

//text angle to the left

//text angle to the right

//Text Color - HEX

//Number of Captcha Code Character

//Background Image Transparency


//Create a new instance of the captcha
$captcha = new SimpleCaptcha($config);

//Save the code as a session dependent string
$_SESSION['string'] = $captcha->Code;