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

Options: ReplyQuote
Re: Captcha not working anymore! shit?
Posted by: evinx (---.upc-f.chello.nl)
Date: January 04, 2008 02:06PM

all other images are viewed ?


or you got more red crosses ?

Options: ReplyQuote
Re: Captcha not working anymore! shit?
Posted by: student101 (---.saix.net)
Date: January 04, 2008 02:12PM

Not sure what you are asking?

Options: ReplyQuote
Re: Captcha not working anymore! shit?
Posted by: yfastud (Moderator)
Date: January 04, 2008 02:25PM

If you didn't enable short_open_tag in php.ini, you have to use full tag <?php ... ?>

Have fun,

FREE One A Day
FREE Photo
FREE Games
FREE Websites
FREE Portable GPS
FREE WAMP Guides

Options: ReplyQuote
Re: Captcha not working anymore! shit?
Posted by: student101 (---.saix.net)
Date: January 04, 2008 02:37PM

Thank you.

Enabled short open tags, this explains why my page was all screwed up after loading my page in wamp.

Thanks again

Cheers

Options: ReplyQuote


Sorry, only registered users may post in this forum.