For Programmers: Free Programming Magazines  


Home > Archive > PHP Pear > September 2005 > Re: [PEAR] CAPTCHA problem









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: [PEAR] CAPTCHA problem
Maximillian Schwanekamp

2005-09-19, 3:56 am

Larry Garfield wrote:
> I'm trying to use the CAPTCHA module for a very simple web email-sending form.
> ...
> I know the font file I'm using is being found, since if I remove it then the
> image isn't built at all.
> Any idea what the problem could be?


Do you have GD with freetype enabled? I had a similar problem with site
on a shared host which happened to have GD 2 without freetype enabled.

--
Max Schwanekamp
http://www.neptunewebworks.com/
Larry Garfield

2005-09-19, 3:56 am

I know GD is installed. How would I check to ensure that freetype is
installed? Is that something to look for in a phpinfo() printout, and if so
what?

And if it doesn't happen to be installed on my host, is there anything I can
do about it? :-)

On Monday 19 September 2005 01:10 am, Maximillian Schwanekamp wrote:
> Larry Garfield wrote:
>
> Do you have GD with freetype enabled? I had a similar problem with site
> on a shared host which happened to have GD 2 without freetype enabled.
>
> --
> Max Schwanekamp
> http://www.neptunewebworks.com/


--
Larry Garfield AIM: LOLG42
larry@garfieldtech.com ICQ: 6817012

"If nature has made any one thing less susceptible than all others of
exclusive property, it is the action of the thinking power called an idea,
which an individual may exclusively possess as long as he keeps it to
himself; but the moment it is divulged, it forces itself into the possession
of every one, and the receiver cannot dispossess himself of it." -- Thomas
Jefferson
Maximillian Schwanekamp

2005-09-19, 3:56 am

Larry Garfield wrote:
> I know GD is installed. How would I check to ensure that freetype is
> installed? Is that something to look for in a phpinfo() printout, and if so
> what?
>
> And if it doesn't happen to be installed on my host, is there anything I can
> do about it? :-)


Yes, run a phpinfo() and check the GD block. You should see these two
lines:
FreeType Support enabled
FreeType Linkage with freetype

If your shared host doesn't have this, you can try convincing them to
recompile PHP for you (they might, if you convince them that they forgot
an essential component), or you can move to another host. I can
recommend a few reasonably-priced US-based hosts that support GD with
freetype (offlist).

--
Max Schwanekamp
http://www.neptunewebworks.com/
Larry Garfield

2005-09-19, 9:56 pm

Well, phpinfo() returns this:

GD Version bundled (2.0.28 compatible)
FreeType Support enabled
FreeType Linkage with TTF library

Is the TTF library not good enough? Do I need to use a different font file,
perhaps? (I just pulled something out of the Windows font directory.)

On Monday 19 September 2005 01:39 am, Maximillian Schwanekamp wrote:

>
> Yes, run a phpinfo() and check the GD block. You should see these two
> lines:
> FreeType Support enabled
> FreeType Linkage with freetype
>
> If your shared host doesn't have this, you can try convincing them to
> recompile PHP for you (they might, if you convince them that they forgot
> an essential component), or you can move to another host. I can
> recommend a few reasonably-priced US-based hosts that support GD with
> freetype (offlist).


--
Larry Garfield AIM: LOLG42
larry@garfieldtech.com ICQ: 6817012

"If nature has made any one thing less susceptible than all others of
exclusive property, it is the action of the thinking power called an idea,
which an individual may exclusively possess as long as he keeps it to
himself; but the moment it is divulged, it forces itself into the possession
of every one, and the receiver cannot dispossess himself of it." -- Thomas
Jefferson
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com