News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

PHPBuilder.com:
Create a CAPTCHA Script with PHP
January 06, 2010 @ 11:49:52

On PHPBuilder.com today there's a new tutorial posted helping you create a simple CAPTCHA image you can use in your forms to help to somewhat secure them from scripts out there that might abuse them.

CAPTCHA protection is used on web site forms and works by generating a random string, writing it to an image, then storing the string inside of a session. Then, the site checks the CAPTCHA when the form is submitted. In this article, you will learn how to make your own simple CAPTCHA image using PHP. You will create the CAPTCHA image step by step.

Their example uses numbers, lowercase letters and a few other characters to create the distorted image. The tutorial shows you how to take this character set, pull out a few randomized values and push them into a dynamically created image with PHP's built-in GD functionality. They also include a brief script showing how to use it in the form for validation of the submission.

1 comment voice your opinion now!
captcha tutorial gd image


blog comments powered by Disqus

Similar Posts

PHPMaster.com: Tracking Upload Progress with PHP and JavaScript

MegaLeecher.net: Decoding CAPTCHA using PHP | Hypertext Preprocessor

Slawek Lukasiewicz's Blog: Zend Framework: logging with Firebug and FirePHP

Frikk.tk: How to make your own CAPTCHA protection using PHP

Christian Schaefer's Blog: Using Zend Framework components in a Symfony2 project


Community Events





Don't see your event here?
Let us know!


tips voicesoftheelephpant framework podcast api opinion library community introduction release bugfix list package install deployment language series laravel interview symfony

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework