Is there a possibility to use this plugin without a freetype GD.
The next code works perfect it gives a verification code, however it isn't working correct. You can enter the comment without code too.
I pasted this code in catcha.php and commented (//) the require(...class..) and the constructors ($oPhpCaptcha)
session_start();
// !!! don't edit this file except for the hex code for the background color - line 27 and line 30 for text color
// go to http://web.forret.com/tools/color.asp for color conversions - do not edit any other lines!!!
// make a string with all the characters that we want to use as the verification code
// left out o, 0, U and V - look too much alike
$alphanum = "ABCDEFGHIJKLMNPQRSTWXYZ123456789";
// generate the verication code
$rand = substr(str_shuffle($alphanum), 0, 5);
// create the hash for the verification code and put it in the session
$_SESSION['php_captcha'] = md5($rand);
// create the image
$image = imagecreate(60, 23);
// use lite blue as the background image - change the hex code to match your background - ex. 245, 245, 255 is light blue; 255, 255, 255 would be white on so on - go to http://web.forret.com/tools/color.asp for color conversions
$bgColor = imagecolorallocate ($image, 245, 245, 255);
// the text color is black - change the hex code to clor of your choice - ex. 0, 0, 0 is black
$textColor = imagecolorallocate ($image, 0, 0, 0);
// write the random number
imagestring ($image, 5, 5, 8, $rand, $textColor);
// send several headers to make sure the image is not cached
// taken directly from the PHP Manual
// Date in the past
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
// always modified
header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
// HTTP/1.1
header("Cache-Control: no-store, no-cache, must-revalidate");
header("Cache-Control: post-check=0, pre-check=0", false);
// HTTP/1.0
header("Pragma: no-cache");
// send the content type header so the image is displayed properly
header('Content-type: image/png');
// send the image to the browser
imagepng($image);
// destroy the image to free up the memory
imagedestroy($image);