ThinkPhp 验证码不显示
环境Win7+IIS
<?php
class PublicAction extends Action{
function Validate(){
import("ORG.Util.Image");
Image::buildImageVerify();
}
}
?>
<img src="__APP__/Public/Validate" onclick='this.src=this.src+"?"+Math.random()'/>
运行http://localhost:8080/Index.php/Public/Validate显示错误
:(
Call to undefined function imagecreate() D:\www\MarketingManage\ThinkPHP\Extend\Library\ORG\Util\Image.class.php 第 305 行.
错误位置
FILE: D:\www\MarketingManage\ThinkPHP\Lib\Core\Think.class.php LINE: 275
TRACE
[13-05-13 15:38:05] D:\www\MarketingManage\ThinkPHP\Lib\Core\Think.class.php (275) halt(Call to undefined function imagecreate() D:\www\MarketingManage\ThinkPHP\Extend\Library\ORG\Util\Image.class.php 第 305 行.)
[13-05-13 15:38:05] D:\www\MarketingManage\ThinkPHP\Lib\Core\Think.class.php (290) Think::appError(1, Call to undefined function imagecreate(), D:\www\MarketingManage\ThinkPHP\Extend\Library\ORG\Util\Image.class.php, 305)
[13-05-13 15:38:05] () Think::fatalError()
ThinkPHP3.1.2 { Fast & Simple OOP PHP Framework } -- [ WE CAN DO IT JUST THINK ]