Home >Backend Development >PHP Tutorial >linux+thinkphp+gd验证码无法显示

linux+thinkphp+gd验证码无法显示

WBOY
WBOYOriginal
2016-06-23 13:52:571002browse

thinkphp+gd验证码在window xampp上面可以正常显示,在ubuntu12.04上面用apt-get安装Apache2+php2+gd无法显示验证码的图片


回复讨论(解决方案)

这显然不是代码问题,而是配置问题
请逐个检查是否都能正常工作

输出 phpinfo 看看是否都正常 还有权限是否都已经正确的给予了?

打????出,看看有什???。
在最?加入
 

ini_set('display_errors','on');error_reporting(E_ALL);

可以了,路径错误

Statement:
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
Previous article:帮忙写条简单的sqlNext article:显示错误提示的疑问