Bluehost.com Web Hosting $6.95

gd2

This is a discussion on gd2 within the alt.comp.lang.php forums, part of the PHP Programming Forums category; Hello. I want to use a captcha system for form validation. The image created isn't displayd but rather says ...


Go Back   Usenet Forums > PHP Programming Forums > alt.comp.lang.php

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 12-18-2006
Harris Kosmidhs
 
Posts: n/a
Default gd2

Hello.
I want to use a captcha system for form validation.

The image created isn't displayd but rather says it contains errors.
Searching the code I found out that while ImageCreate works fine
imagecolorallocate doesn't

$image = ImageCreate($this -> width, $this -> height) or die("Cannot
Initialize new GD image stream");
$background_color = imagecolorallocate($image, 1, 2, 22) or die("Error
Image Allocate1");

the second func dies. phpinfo shown gd IS installed. Any help?

PS:($this->width,height are set correctly)
Reply With Quote
  #2 (permalink)  
Old 12-18-2006
Harris Kosmidhs
 
Posts: n/a
Default Re: gd2

Harris Kosmidhs wrote:
> Hello.
> I want to use a captcha system for form validation.
>
> The image created isn't displayd but rather says it contains errors.
> Searching the code I found out that while ImageCreate works fine
> imagecolorallocate doesn't
>
> $image = ImageCreate($this -> width, $this -> height) or die("Cannot
> Initialize new GD image stream");
> $background_color = imagecolorallocate($image, 1, 2, 22) or die("Error
> Image Allocate1");
>
> the second func dies. phpinfo shown gd IS installed. Any help?
>
> PS:($this->width,height are set correctly)


sorry ignore it.
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 06:29 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0