PHP Classes

Captcha Numbers: Generate CAPTCHA validation images

Recommend this page to a friend!
  Info   Screenshots Screenshots   View files View files (4)   DownloadInstall with Composer Download .zip   Reputation   Support forum (1)   Blog    
Ratings Unique User Downloads Download Rankings
StarStarStar 57%Total: 3,279 All time: 1,061 This week: 107Up
Version License Categories
captchanumbers 1.0.0GNU General Publi...Graphics, Validation, Security
Description 

Author

This class can generate images for use in CAPTCHA based validation tests (Completely Automated Public Turing test to tell Computers from Humans Apart).

It can generate an image with a random sequence of numbers over a grid of lines. The numbers and the grid are rendered in configurable colors. The numbers are rendered using a given TrueType font.

The image can be generated in either GIF, JPEG or PNG formats. The default format is PNG.

Picture of Hadar Porat
Name: Hadar Porat <contact>
Classes: 5 packages by
Country: United States United States
Age: 40
All time rank: 31336 in United States United States
Week rank: 312 Up38 in United States United States Down

Details

GD2 Problems ------------ You must have GD2 module installed with PHP. If u get imagecreate() not found, it's means you don't have GD2 installed. You can install it easly on windows by open php.ini and uncomment extension=php_gd2.dll line. Also check that extension_dir in php.ini is correct. Font Problems ------------- You must have arial.ttf available for the script to work. If the picture is shown without numbers (only grid) u need to download arial.ttf from http://www.webpagepublicity.com/free-fonts-a4.html. Save arial.ttf in the same directory of the script. Notice it's arial.ttf and not Arial.ttf.

Screenshots  
  • screen1.jpg
  Files folder image Files  
File Role Description
Plain text file captcha_numbers.php Class Main Class
Plain text file example.php Example Image displayer
Plain text file loginexample.php Example Login Form Example
Plain text file readme.txt Doc. Readme

 Version Control Unique User Downloads Download Rankings  
 0%
Total:3,279
This week:0
All time:1,061
This week:107Up
 User Ratings  
 
 All time
Utility:69%StarStarStarStar
Consistency:77%StarStarStarStar
Documentation:69%StarStarStarStar
Examples:77%StarStarStarStar
Tests:-
Videos:-
Overall:57%StarStarStar
Rank:1673