PHP Classes

hn_captcha.class demo problem

Recommend this page to a friend!

      HN CAPTCHA  >  All threads  >  hn_captcha.class demo problem  >  (Un) Subscribe thread alerts  
Subject:hn_captcha.class demo problem
Summary:TrueType Files
Messages:4
Author:Wendy Ford
Date:2006-08-03 16:38:10
Update:2007-09-11 19:53:15
 

  1. hn_captcha.class demo problem   Reply   Report abuse  
Picture of Wendy Ford Wendy Ford - 2006-08-03 16:38:10
I have uploaded all the HN Captcha files to my localhost, so I can test things. However, I keep getting the following error:-

-Captcha-Debug: Check given TrueType-Array! (6)
-Captcha-Debug: Valid TrueType-files: (0)No Truetypefont available for the CaptchaClass.

I've tried changing the ttf document root to no avail and uploading a couple of ttf file. I realise I need to do something relating the fonts, but I'm not sure what. Can you help.

thanks in advance


Wendy

  2. Re: hn_captcha.class demo problem   Reply   Report abuse  
Picture of Gord P Gord P - 2006-08-04 03:20:04 - In reply to message 1 from Wendy Ford
Did you change 'TTF_RANGE'? The names of the files you upload into the fonts directory must match the names in the TTF_RANGE array. The files must also have size greater than zero (that just means that they uploaded properly).

  3. Re: hn_captcha.class demo problem   Reply   Report abuse  
Picture of elias elias - 2007-01-21 19:38:58 - In reply to message 2 from Gord P
Hola lo que debes hacer es completar la ruta $_SERVER['DOCUMENT_ROOT']; imprimelo antes de que comience el array y veras que puedes visualizar la ruta del docuemnto en tu localhost luego debes completarla por ejemplo: suponte que el $_SERVER['DOCUMENT_ROOT'] es igual a : C:/var/www.'/hn_captcha/_rsrc/TTF/

  4. Re: hn_captcha.class demo problem   Reply   Report abuse  
Picture of Kent Parker Kent Parker - 2007-09-11 19:53:15 - In reply to message 1 from Wendy Ford
For anyone else who experiences this problem, some compilers are case sensitive. In the captcha package the file names are in upper case. Make sure you actual file name and the entries in the code have the same case and it should work.