GD库不支持,怎么处理

WBOY
Release: 2016-06-13 13:41:11
Original
1335 people have browsed it

GD库不支持,怎么办?
本地安装了php5.2.5,安装并开启了GD库,可是测试脚本的时候还是显示为:GD支持为否。。。后台验证码无法显示呀。。。

------解决方案--------------------
检查 php.ini 位置是否正确
------解决方案--------------------
什么系统。window是下在php.ini中找到

;extension=php_gd2.dll

去掉前面分号。重启apache
------解决方案--------------------
1. phpinfo()中看看Loaded Configuration File 对应的路径是不是你修改的php.ini。
2. 检查php.ini中的extension=php_gd2.dll前面的“;” 是否去掉。
3. 重启IIS,再次查看phpinfo()中GD Support是否是enabled。
------解决方案--------------------
解决方法:
建立系统变量 PHPRC,值为php.ini所在路径

具体如下:
PHP目录为D:/host,且php.ini也位于该目录,操作如下:我的电脑- 右键-属性- 高级- 环境变量- 系统变量-新建->变量名:PHPRC 变量值:D:\host->重启服务器,OK!

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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!