Heim  >  Artikel  >  Backend-Entwicklung  >  PHP新手,验证码有关问题

PHP新手,验证码有关问题

WBOY
WBOYOriginal
2016-06-13 13:45:07818Durchsuche

PHP新手,验证码问题
下了个开源代码研究,遇到验证码的问题,请教下,以下是错误代码:

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
##出错时变量的值:##
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,
  'degree' => -5,
  'fontsize' => 78,
  'letter' => 'n',
)
-------

------解决方案--------------------
show me the code~
------解决方案--------------------

探讨
show me the 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

这段错误记录是开源码带的调试功能么?
提示的很清楚:
captcha_class.php这个文件里边的第256行错误。imagetfrtext()函数错误,应该是字符文件载入错误吧。


------解决方案--------------------
imagetfrtext()函数错误,根本无法把字符串载入进去!你在检查检查那个函数
------解决方案--------------------
探讨

imagetfrtext()函数错误,根本无法把字符串载入进去!你在检查检查那个函数

------解决方案--------------------
字体文件不存在
Stellungnahme:
Der Inhalt dieses Artikels wird freiwillig von Internetnutzern beigesteuert und das Urheberrecht liegt beim ursprünglichen Autor. Diese Website übernimmt keine entsprechende rechtliche Verantwortung. Wenn Sie Inhalte finden, bei denen der Verdacht eines Plagiats oder einer Rechtsverletzung besteht, wenden Sie sich bitte an admin@php.cn