php imagecreatetruecolor()方法报未定义错误解决方法

时间:2016-01-26 15:22:28   收藏:0   阅读:2956

php练习生成验证码方法时,使用php的 imagecreatetruecolor() 方法

报错 Fatal error: Uncaught Error: Call to undefined function imagecreatetruecolor...

原因为:php默认没有开启该扩展。

方法:在php.ini中,去掉 extension=php_gd2.dll 前分号,取消注释。


 

评论(0
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!