你把C:\php\extensions\php_gd.dll复制到C:\WINDOWS\system32下,在把php.ini中php_gd.dll扩展前面的 ; 号去掉.