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

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

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-13 10:13:29
Original
912 people have browsed it

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

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

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

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

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

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

--关闭debug试试;

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
Latest Issues
Image tag editing
From 1970-01-01 08:00:00
0
0
0
Show background image
From 1970-01-01 08:00:00
0
0
0
Modify image size
From 1970-01-01 08:00:00
0
0
0
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template