PHP beginners, verification code problems

Source: Internet
Author: User
A beginner in PHP, has an open-source code study on the verification code. if you have any questions about the verification code, please refer to the following error code: errID: 2 errStr: imagettftext () [function. imagettftext]: ProblemloadingglypherrFile: IWEB_PATH/cor PHP beginner, verification code problems
I have studied the open source code and encountered a verification code problem. For more information, see the following error code:

ErrID: 2
ErrStr: imagettftext () [function. imagettftext]: Problem loading glyph
ErrFile: IWEB_PATH/core \ util \ captcha_class.php
ErrLine: 256
ErrTime: 11-09-22 14:38:21
# Variable value when an error occurs :##
Array (
'Text' => 'nuheb ',
'Fontcfg '=>
Array (
'Spacing' => 2,
'Minsize' => 22,
'Maxsize' => 24,
'Font' => 'font. ttf ',
),
'Fontfile' => 'E: \ php \ lib \ core \ util/font. ttf ',
'Lettersmissing' => 0,
'Fontsizefactor '=> 1,
'X' => 60,
'Y' => 91,
'Length' => 5,
'I' => 0,
'Gree' =>-5,
'Fontsize' => 78,
'Letter' => 'N ',
)
-------

------ Solution --------------------
Show me the code ~
------ Solution --------------------
Discussion
Show me the code ~

------ Solution --------------------
ErrID: 2
ErrStr: imagettftext () [function. imagettftext]: Problem loading glyph
ErrFile: IWEB_PATH/core \ util \ captcha_class.php
ErrLine: 256
ErrTime: 11-09-22 14:38:21

Is this error record an open source code debugging function?
The prompt is clear:
The error code returned by row 256th in the file captcha_class.php. The imagetfrtext () function is incorrect. it should be a character File loading error.


------ Solution --------------------
The imagetfrtext () function is incorrect and cannot load the string! You are checking that function
------ Solution --------------------
Discussion

The imagetfrtext () function is incorrect and cannot load the string! You are checking that function

------ Solution --------------------
The font file does not exist.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.