I have created a form which is coming up fine, but the captcha image is not.
When I go to http://www.katieamaral.net/form91851/captchasecurityimages.php
this is the error message that I get:
Warning: imagettfbbox() [function.imagettfbbox]: Could not find/open font in /nfs/c02/h07/mnt/38735/domains/katieamaral.net/html/form91851/captchasecurityimages.php on line 60
Error in imagettfbbox function
My first suggestion would be to verify this file exists (line 60 from captcha file).
var $font = 'monofont.ttf';
This file monofont.ttf must be in the same folder as the CaptchaSecurityImages.php file.
My second suggestion would be to speak with your web host and see if they can help explain the failure. The scripts work when the proper resources are available.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I checked and the file is in the same folder and all is spelled correctly. I put in a request with my hosting, hopefully they can tell me what is wrong.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello,
I have created a form which is coming up fine, but the captcha image is not.
When I go to http://www.katieamaral.net/form91851/captchasecurityimages.php
this is the error message that I get:
Warning: imagettfbbox() [function.imagettfbbox]: Could not find/open font in /nfs/c02/h07/mnt/38735/domains/katieamaral.net/html/form91851/captchasecurityimages.php on line 60
Error in imagettfbbox function
I checked my php info file and it looks like GD and freetype are enabled,
http://localhost/Hannah/phpinfo.php
I also checked the filenames in the code and all that looks correct.
Can't seem to figure this out.
The form is at: http://www.katieamaral.net/form91851/form.html
Thanks for any help with this. I have been struggling with getting a form going that will upload pics for a while now.
My first suggestion would be to verify this file exists (line 60 from captcha file).
var $font = 'monofont.ttf';
This file monofont.ttf must be in the same folder as the CaptchaSecurityImages.php file.
My second suggestion would be to speak with your web host and see if they can help explain the failure. The scripts work when the proper resources are available.
Thanks for the quick reply!
I checked and the file is in the same folder and all is spelled correctly. I put in a request with my hosting, hopefully they can tell me what is wrong.