PHP Classes

captcha troubleshooting

Recommend this page to a friend!

      CAPTCHA  >  All threads  >  captcha troubleshooting  >  (Un) Subscribe thread alerts  
Subject:captcha troubleshooting
Summary:a fix for certain versions of GD - just a grey box? this fixes
Messages:1
Author:juglesh
Date:2005-04-23 23:46:51
 

  1. captcha troubleshooting   Reply   Report abuse  
Picture of juglesh juglesh - 2005-04-23 23:46:51
Just to let you know, I needed to use this :

From here: http://us2.php.net/imagettftext
"In many cases where a font resides in the same directory as the script using it the following trick will alleviate any include problems.

// Set the enviroment variable for GD
putenv('GDFONTPATH=' . realpath('.'));

// Name the font to be used (note the lack of the .ttf extension)
$font = 'SomeFont';

In the function MakeCaptcha () of captcha.class.php.
I just put that in, and changed "$this->Font" to "$font"