[nycphp-talk] PEAR CAPTCHA Problems

Ben Sgro (ProjectSkyLine) ben at
Wed Aug 29 21:39:20 EDT 2007


I did just as you stated. No luck.

I grabbed the file from windows and mac (.ttf) checked the path, tried a few
variations, and made sure the $options array had the values set before
passing to the function.

I want to say its a path issue, but I've tried both relative and absolute 

Any ideas?

- Ben

Ben Sgro, President
ProjectSkyLine - Defining New Horizons
+1 718.487.9368 (N.Y. Office)

Our company:
Our products:

This e-mail is confidential information intended only for the use of the 
individual to whom it is addressed.
----- Original Message ----- 
From: "Gary Mort" <bz-gmort at>
To: "NYPHP Talk" <talk at>
Sent: Wednesday, August 29, 2007 7:43 PM
Subject: Re: [nycphp-talk] PEAR CAPTCHA Problems

> Find a ttf file, any ttf file(if your using windows, take a look in your 
> control panel->fonts folder
> Upload it to the server and put it somewhere readable by your web program.
> Set the options appropriately, ie:
> |// Set CAPTCHA options (font must exist!)
> $options = array(
>    'font_size' => 24,
>    'font_path' => './',
>    'font_file' => 'COUR.TTF'
> );
> Where font_path is the full path to your font file
> and font_file is your font file(make sure case matches!)
> Make sure to pass your options to the functions that require them.
> A little prayer couldn't hurt. :-)
> (Captcha images are a royal PITA due to the font issues, ability to write 
> to the correct directory, and whether or not you have GD or freetype or 
> ImageMagick or whatever they want installed)
> |
> _______________________________________________
> New York PHP Community Talk Mailing List
> NYPHPCon 2006 Presentations Online
> Show Your Participation in New York PHP

More information about the talk mailing list