Heim  >  Artikel  >  php教程  >  dwz_thinkphp验证码图片无法显示

dwz_thinkphp验证码图片无法显示

WBOY
WBOYOriginal
2016-06-06 20:12:061335Durchsuche

最近打算学习一下dwz_thinkphp,复制了源码过来,发现登陆页面的验证码无法正常显示。搜索apache错误日志,里面提示PHP Fatal error: ?Call to undefined function imagecreate() 通过PHP手册查询发现,这是一个gd库里面的函数。也就是说GD库没有安装或者没

最近打算学习一下dwz_thinkphp,复制了源码过来,发现登陆页面的验证码无法正常显示。搜索apache错误日志,里面提示PHP Fatal error: ?Call to undefined function imagecreate()

通过PHP手册查询发现,这是一个gd库里面的函数。也就是说GD库没有安装或者没有正确安装,重新安装一下PHP的GD库即可。

centos下

yum search php|grep gd
#php-gd.x86_64 : A module for PHP applications for using the gd graphics library
sudo yum install php-gd.x86_64
sudo service httpd restart
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
Vorheriger Artikel:PHP中使用Imagick操作PSD文件实例Nächster Artikel:转:PHP调试错误