PHP Classes

Math CAPTCHA Class: CAPTCHA validation using math operations

Recommend this page to a friend!
  Info   Screenshots Screenshots   View files View files (6)   DownloadInstall with Composer Download .zip   Reputation   Support forum (1)   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 989 All time: 3,671 This week: 189Up
Version License PHP version Categories
math_captcha 1.0GNU General Publi...5.0PHP 5, Graphics, Validation, Security


This class can be used to perform CAPTCHA validation using math operations.

It can generate an image that displays a simple mathematical operation between two random integer numbers.

Currently the class supports the addition, subtraction and multiplication operations.

The user needs to enter the result of the math operation to pass the validation.

The class stores the validation numbers in session variables for later verification.

Picture of nickolas whiting
Name: nickolas whiting <contact>
Classes: 2 packages by
Country: United States United States
Age: 35
All time rank: 1964275 in United States United States
Week rank: 578 Up70 in United States United States Up

  • ScreenShot
  Files folder image Files  
File Role Description
Plain text file captcha.php Class Captcha Class
Plain text file captcha_config.php Conf. Configuration File
Plain text file captcha_image.php Class Captcha Image Generator
Plain text file index.php Example Example Index
Plain text file legal_notice.txt Lic. Legal License
Plain text file test.php Example Test File

 Version Control Unique User Downloads Download Rankings  
This week:0
All time:3,671
This week:189Up
User Comments (1)
Nice idea and good code.
14 years ago (David Ferreira)