PHP Classes

Captcha to download: Show and check CAPTCHA images to protect downloads

Recommend this page to a friend!
  Info   View files View files (12)   DownloadInstall with Composer Download .zip   Reputation   Support forum (2)   Blog    
Ratings Unique User Downloads Download Rankings
StarStar 38%Total: 534 All time: 5,629 This week: 455Up
Version License PHP version Categories
captcha-to-download 1.0.0GNU General Publi...5.0PHP 5, Graphics, Validation, Security


This class can show and check CAPTCHA images eventually to protect downloads.

It can generate an image with random text characters rendered on top of a random background image.

The text is stored in a session variable for subsequent validation.

The generated image is served as the current script output in PNG format.

The class can also check if the user entered text matches the text rendered on the CAPTCHA image.

Picture of Zehair
Name: Zehair <contact>
Classes: 1 package by
Country: France France
Age: 35
All time rank: 320285 in France France
Week rank: 259 Up6 in France France Up

  Files folder image Files  
File Role Description
Files folder imagejs (2 files)
Files folder imagephp (2 files)
Files folder imagestyle (1 file, 1 directory)
Accessible without login Plain text file index.html Data This is the index page

  Files folder image Files  /  js  
File Role Description
  Accessible without login Plain text file dsscript.js Data Jquery script
  Accessible without login Plain text file jquery.lib.js Data Jquery lib

  Files folder image Files  /  php  
File Role Description
  Accessible without login Plain text file ajax.php Example This is the script file
  Plain text file captcha.class.php Class this is the class

  Files folder image Files  /  style  
File Role Description
Files folder imageimg (6 files)
  Accessible without login Plain text file dsstyle.css Data The css file

  Files folder image Files  /  style  /  img  
File Role Description
  Accessible without login Image file 1.png Photo background 1
  Accessible without login Image file 2.png Photo Bg 2
  Accessible without login Image file 3.png Photo bg 3
  Accessible without login Image file bg.png Photo bg
  Accessible without login Image file error.png Photo error
  Accessible without login Image file Refresh.png Photo Refresh

 Version Control Unique User Downloads Download Rankings  
This week:0
All time:5,629
This week:455Up
User Ratings User Comments (1)
 All time
This is what I was looking for.
11 years ago (Zed)