刚才在写验证码的时候,发现报错,然后排查分析了一下,原来是所用的php版本(PHP/5.3.13)没有开启此扩展功能。
进入php.ini 找到extension=php_gd2.dll ,将其前面的 ‘;’ 去掉即可。