PHP Classes
elePHPant
Icontem

CAPTCHA Creator: Create images from CAPTCHA validation

Recommend this page to a friend!
  Info   Screenshots Screenshots   View files View files (5)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings
2011-07-04 (5 years ago) RSS 2.0 feedNot yet rated by the usersTotal: 960 All time: 3,615 This week: 923Up
Version License PHP version Categories
captcha-creator 1.0GNU General Publi...5.0PHP 5, Graphics, Libraries, Validation, S...
Description Author

This class can be used to create images from CAPTCHA validation.

It can generate a random text with 5 characters from restricted range of characters which is stored in a session variable for posterior verification.

The class creates an image that displays the picked text characters obfuscated with random colored lines. The image size, text font color and background color are configurable parameters.

Picture of subash
Name: subash <contact>
Classes: 2 packages by
Country: India India

Details
=====================================================================================================================
=										READ ME																		=
Author			: Subash Ps <pssubashps@gmail.com>
Descritption	: Catcha Generator,case sensitive
Version			: 1.0 beta
=====================================================================================================================

#####################################################################################################################
												Usage
include class.captcha.php into your application.Create object to that class a call the function named createcaptcha().
This function have three optinal arguments,there are
				width
				height
				font color
				backgroud color
				noice
width			: Captcha image width,by default it is 200

height			: Captcha image height,by default it 150

font color		: The class define only five diffrent colors,black(0),white(4),red(1),green(2),blue(3) and yellow(5).
				  By default it will take black color.Pass the color code as the argument.		

backgroud color	: The class define only five diffrent colors,black(0),white(4),red(1),green(2),blue(3) and yellow(5).
				  By default it will take white color.Pass the color code as the argument.	

noice			: This is boolean argument.by default it is false.If it is true it will scatter some dotts on the 
				  captcha  image.
				  
#####################################################################################################################

---------------------------------------------------------------------------------------------------------------------
										EXAMPLE
front end file : displays catpcha
				<img name = 'cap' src='createcaptcha.php'/>
createcapthcha.php : this file helps to customize your captcha
					 require_once 'captch.php';
					$captcha = new Captcha();
					$captcha->createCaptcha(200,40,5,0,true);

---------------------------------------------------------------------------------------------------------------------


*********************************************************************************************************************
Your comments are valuable.
Please send your feedback to psssubahsps@gmail.com
*********************************************************************************************************************
Screenshots  
  • screenshot
  Files folder image Files  
File Role Description
Files folder imageclasses (1 file)
Files folder imageexample (3 files)
Plain text file readme Doc. Usage Information

  Files folder image Files  /  classes  
File Role Description
  Plain text file class.captcha.php Class Captcha Creator class

  Files folder image Files  /  example  
File Role Description
  Plain text file createcaptcha.php Example Example file
  Plain text file style.css Data style sheet
  Plain text file test.php Example front end file

 Version Control Unique User Downloads Download Rankings  
 0%
Total:960
This week:0
All time:3,615
This week:923Up