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
Date:2005-04-23 23:46:51

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

From here:
"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"