Home >Backend Development >PHP Tutorial >thinkphp写的验证码不显示,该如何解决

thinkphp写的验证码不显示,该如何解决

WBOY
WBOYOriginal
2016-06-13 10:13:29883browse

thinkphp写的验证码不显示
public function verify(){
import('@.Org.Image');
Image:buildImageVerify();
}

这个是写在Action里面的,但是为什么显示的却是一个红叉,图片不显示呢?
我检查了路径,是没有错误的!

------解决方案--------------------
图片不显示...

验证码不显示的原因有以下几点:
 
--PHP是否已经安装GD库支持;

--输出之前是否有任何的输出(尤其是UTF8的BOM头信息输出);

--Image类库是否正确导入;

--关闭debug试试;

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