Here is a very nice captcha script (french comments) that you can use with a function. You just have to place a file captcha.ttf with characters in the same folder :
// Attention, le code est fait pour un code de 5 caractères (pas de minuscules)
$startOffset = 10; // offset de départ sur l'image (en pixels)
$size_min = 35; // taille minimum des caractères
$size_max = 60; // taille maximum des caractères
$angle_min = 0; // angle minimum d'inclinaison des caractères
$angle_max = 20; // angle maximum d'inclinaison des caractères
$width = 201; // largeur de l'image
$height = 71; // hauteur de l'image
$addBlur = true; // ajouter un floutage au code
$blurLevel = 1; // niveau de floutage (entre 1 et 10 / 1 ou 2 conseillé après ça forme une bande autour des caractères)
$policePath = dirname(__FILE__).DIRECTORY_SEPARATOR.'captcha.ttf'; // chemin de la police à utiliser
/********************************************* Ne rien toucher au dela *********************************************/
// création de l'image contenant le code
$_charsImgHandler = imagecreatetruecolor($width,$height) OR exit('please activate GD lib');
$white = imagecolorallocate($_charsImgHandler, 255, 255, 255);
imagefill($_charsImgHandler, 0, 0,$white);
// on prépare et on copie le code en session et sur l'image
$i = -1;
$pos_x = $startOffset;
$cnt = strlen($code)-1;
// on rend transparent le fond de l'image contenant les caractères
imagecolortransparent($_charsImgHandler,$white);
// création image de fond
$_bgImgHandler = imagecreatetruecolor($width,$height);
imagefill($_bgImgHandler, 0, 0,$white);
// choix de la couleur des lignes et du type de quadrillage
$line = imagecolorallocate($_bgImgHandler,mt_rand(200,230),mt_rand(200,230),mt_rand(200,230));
$lineType = mt_rand(0,11);
switch($lineType)
{
/* Lignes et grilles "normales" */
case 0:
case 1:
case 2:
if($lineType !== 0) // ligne horizontales ou grille
{
for($y=0;$y<$height;$y+=5)
imageline( $_bgImgHandler, 0, $y, $width, $y,$line);
}
if($lineType !== 1) // ligne verticales ou grille
{
for($y=0;$y<$width;$y+=5)
imageline( $_bgImgHandler, $y, 0, $y, $width, $line);
}
break;
/* éventails */
case 3:
case 4:
case 5:
if($lineType !== 3) // eventail horizontal ou en grille
{
for($y=0,$z=0; $y<$width; ++$y,$z+=5)
imageline( $_bgImgHandler, $width*2, 0, 0, $z, $line);
}
if($lineType !== 4) // eventail vertical ou en grille
{
for($y=0,$z=0; $y<$height; ++$y,$z+=5)
imageline( $_bgImgHandler, 0, $width, $z, 0, $line);
}
break;
var pageOptions = {
'pubId' : 'pub-8098918000470057',
'channel' :... CAPTCHA is released to be a helpful and creative program that...
34 * s and Anti-Spam Services | NetWaver netwaver > 35/34
...ipts and Anti-Spam Services / Alabama Website Design and Development... Inspiring Design Links for Creatives for 2009-04-24 | This Inspires...
Free Form-to-Email script with Captcha by SnapHost - Free Tools and Utilities - The Script Dungeon scriptdungeon
Free PHP Scripts, ASP Scripts, Java Scripts, Tools and... This Form-to-Email script with Captcha is intended to collect data...
Captcha form mail script in php free downloadable version | SendBlaster | Email broadcaster sendblaster
Create your own permission based email list using Php Captcha Form...
Best PHP Scripts | PHP * s best php scripts > captcha scripts.htm
Start your Own Craiglist or Car Classified Site with Flynax... PHP contact form features: (1) to prevent spam, a user is required to... BotProof Email is a very useful script class which hides contact...
» * findmysoft > scripts/captcha script
Free Captcha Creator Standard Edition - PHP * software that generates Captcha Images. sharewarecheap > Captcha Creator Standard Edition software 1644
Click here to
download Captcha Creator Standard Edition... Captcha Creator is a powerful and complete PHP Captcha...
Download Free CAPTCHA - Free CAPTCHA is an ASP script that allows you to protect your forms from spiders. - Softpedia webscripts.softpedia > script/Security Systems
You can check whether the user is human or robot by using the... Release Date - 27/08/07
Get free version without... Use this Captcha maker tool as picture caputre for human...
PHP * for Comment Forms & Registration Forms | Web Design and Development Blog itmdesign > blog/2009/02/php captcha script for comment forms registration forms
Captcha Creator PHP Script 1.2 download free - Captcha Creator is a professional PHP Script filecluster > Web Authoring/ASP PHP/Download Captcha Creator PHP Script
Captcha Creator PHP Script is periodically updated by FileCluster... How To: Synchronize Google Chrome browser across all your...
a good free PHP * [Archive] - CodingForums.com codingforums > archive/index.php/t 124830
hi, are you sre that your php has support for true type fonts? if not... Posted above - Have you checked your web server log for errors? If...
10 * s and services for websites... (Woork) » TechNews.AM technews > conversations/woork/10
Honda brings the CR-X Hatchback back to us with the... Follow @Soshable Because Mainstream Media Doesn’t Get Social...
Captcha Creator is a professional fully customizable PHP Script that... Subtitles Creator is a software to create a list of...
SI Captcha for Wordpress Plugin PHP Script - Long Beach Weather 642weather > weather/scripts wordpress captcha.php
WordPress Blog Add-on Theme for WD/PHP/AJAX Website... Color Theme Switcher Plugin for WD/PHP/AJAX Website... Volcano Conditions Add-on for WD/PHP/AJAX Website...
Download Captcha Creator PHP Script 1.2 Free Trial - Captcha Creator is a professional PHP Script download3000 > download 45787
could put your computer and activity at risk by infecting the system... Please do use the following linking code to link to Captcha Creator... It is not legal to make use of cracks, patches, pirate...
Free PHP * , no database, no images : teasso teasso > products/captcha
10 * s and services for websites | Queness queness > post/40/10
Giveaway 5 Developer Subscriptions of WordPress club by... 6 Typography Wordpress Plugins for Your Blog: Improve Readability and... 16 Impressive Flash-Like Javascript Animation Inspirations, Tutorials...
Free Contact Form PHP Script with image captcha - contact.php weather watch > smf/index.php?topic=33604.0
added features: checks for required mail and image PHP functions... added a few settings for email message headers few other small...
WebSpamProtect.com - PHP * to protect your web form from spambots webspamprotect > php captcha.php
This license allows the usage of the software on any number of... Online WYSIWYG form builder, receiving submissions instantly by...