Captcha not working anymore! shit?
Posted by:
student101
(---.saix.net)
Date: January 04, 2008 08:07AM
Here is my captcha script:
+++++++++++++++++++++++++++++++++
<?
session_start();
$text = rand(10000,99999);
$_SESSION["vercode"] = $text;
$height = 25;
$width = 65;
$image_p = imagecreate($width, $height);
$black = imagecolorallocate($image_p, 0, 0, 0);
$white = imagecolorallocate($image_p, 255, 255, 255);
$font_size = 14;
imagestring($image_p, $font_size, 5, 5, $text, $white);
imagejpeg($image_p, null, 80);
?>
+++++++++++++++++++++++++++++++++
When I call this script on it's own it displays a blank page.
When I call this script the normal way, I get a red X in an image placholder box.
Please tell me what to enable / disable to get this to work.
I am using:
WAMP5 Version 1.7.2
php_gd2 is enabled
Please tell me what to enable / disable to get this to work.
Cheers