Moein Hosseini
Moein Hosseini

Reputation: 4373

php Image Processing / GD library

I want to program a class for captcha code in php,I can do it by GD,but it seem that is not available in all server,is there any way to do it? is there any library,that available in all servers?and supported by all of them?

Upvotes: 0

Views: 859

Answers (4)

Vish
Vish

Reputation: 4492

You can use the class for google recaptcha as GD would not be available on all the servers but most servers with PHP would be able to run the google recaptcha class.

Upvotes: 0

Justin
Justin

Reputation: 11

If you want something that must work without gd, you could take a look at NUCaptcha. The only PHP prerequisite is the mcrypt library. As opposed to a traditional CAPTCHA, the NUCaptcha website explains:

NuCaptcha is displayed as an H.264 MPEG-4 Video Stream that is rendered in your browser in a variety of ways.

Upvotes: 0

user188654
user188654

Reputation:

GD might actually not be installed on some web servers which is reason enough to first check which image manipulation extensions are available with http://php.net/manual/en/function.get-loaded-extensions.php

Upvotes: 0

Justin ᚅᚔᚈᚄᚒᚔ
Justin ᚅᚔᚈᚄᚒᚔ

Reputation: 15359

GD is available on all servers, it's just a matter of having the PHP extensions loaded. Since PHP does not have image processing natively built in to the language, an extension is the best anyone can hope for.

It's worth noting that ImageMagick is another option, but it's a bit of a pain to get installed.

Upvotes: 1

Related Questions