PHP Classes

Fox captcha: Generate CAPTCHA validation images with reload.

Recommend this page to a friend!
  Info   Screenshots Screenshots   View files View files (9)   DownloadInstall with Composer Download .zip   Reputation   Support forum (8)   Blog (2)    
Ratings Unique User Downloads Download Rankings
StarStarStar 48%Total: 1,542 All time: 2,547 This week: 524Up
Version License PHP version Categories
fox_captcha 3.0Artistic License45Graphics, Validation, Security


This class can generate images for use in CAPTCHA based validation tests.

It generates an image of a given width and height with a sequence of random hexadecimal digits over a set of random lines.

The digits and the lines are rendered with the same foreground color. The foreground and background colors are generated randomly. The background color is always darker than the foreground color to assure high contrast.

The generated image is a PHP file.

The verification digits are stored in a session variable for posterior verification.
It also supports relaoding the Image without need to reload the base page. The link used to initiate the reload may be customized to any text or even image or button. Now in version 2.5 a loading gif indicator is rendered till the new Captcha image is downloaded.

Picture of Said Bakr
Name: Said Bakr <contact>
Classes: 2 packages by
Country: Egypt Egypt
Age: 46
All time rank: 151513 in Egypt Egypt
Week rank: 290 Up6 in Egypt Egypt Up

  • screenshot2.png
  Files folder image Files  
File Role Description
Files folder imageimages (2 files)
Files folder imageimgaes (1 file)
Plain text file Fox_captcha.php Class The main class file
Plain text file fox_captcha_image.php Class The dynamic image file should be reloaded
Accessible without login HTML file how2use.html Doc. Explain how to use the class object and methods
Plain text file index.php Example The page which will submit to the form processor
Plain text file form.php Example Here you can see if the code entered true or false
Image file screenshot.jpg Screen A screenshot of the captcha image

  Files folder image Files  /  images  
File Role Description
  Plain text file fox_captcha_image.php Appl. The dynamic PHP Captcha Image
  Image file fox_captcha_image_loading.gif Icon The reloading image indicator

  Files folder image Files  /  imgaes  
File Role Description
  Plain text file fox_captcha_image.php Appl. The dynamic PHP Captcha Image

 Version Control Unique User Downloads Download Rankings  
This week:0
All time:2,547
This week:524Up
User Ratings User Comments (3)
 All time