PHP Fatal error:  Call to undefined function imagettftext() in

这个错误主要是因为在使用function imagettftext()时找不到定义的字体位置。简单的解决办法就是正确设置字体路径。PHP官方也有个提议就是将字体和script放置在相同路径。

“In many cases where a font resides in the same directory as the script using it the following trick will alleviate any include problems.”

发表评论