News Feed
Sections




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

Codewalkers.com:
Creating a CAPTCHA with PHP
June 07, 2006 @ 05:58:57

Codewalkers.com has a new tutorial posted today showing the creation of a CAPTCHA image with PHP.

You may be thinking just exactly what is a captcha? Well you are likely to have already seen them across the web. They are those little images with a code on the front that you type into a box in order to submit something. This kind of system helps to prevent automatic submitting of an operation by some kind of program or robot. In this tutorial I will show you how to make a CAPTCHA [just like the one below]. Its not the most advanced captcha available because it uses a simple system font and nothing more.

They start with a look at how CAPTCHAs work before even looking at the code. The next steps include the creation of the random string of characters and placing them in the image (with a standard background in this case). The image is built with the GD functionality in PHP. Finally, they add the functionality in, checking a session variable, to ensure that the user has inputted the text from the image correctly.

1 comment voice your opinion now!
captcha tutorial image gd session png captcha tutorial image gd session png


blog comments powered by Disqus

Similar Posts

Christian Schaefer's Blog: Simply iterate over XML with plain PHP using little memory and CPU

Rob Allen: Setting up Zend Server 6 on OS X for PHP development

Abhinav Singh's Blog: Setting Nginx, PHP Fastcgi and XCache on a new Ubuntu

The Shadow Fox Network: Building an RSS Feed From a Database

Zend Developer Zone: Build an Enterprise-Grade PHP Stack with Zend Server 5.0 and Oracle 11g


Community Events

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


video psr7 laravel laravel5 framework interview development community voicesoftheelephpant unittest introduction release extension opinion conference library podcast series api language

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