Home > php教程 > php手册 > dwz_thinkphp验证码图片无法显示

dwz_thinkphp验证码图片无法显示

WBOY
Release: 2016-06-06 20:12:06
Original
1412 people have browsed it

最近打算学习一下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
Copy after login
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Recommendations
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template