php-gd库,该如何解决

WBOY
Release: 2016-06-13 13:13:51
Original
900 people have browsed it

php---gd库
在火狐浏览器上预览是出现错误信息是:图像“http://localhost/php100/gd2-1.php”因其自身有错无法显示
请问这是什么错误?
(注*php.ini里的组件已开,代码没错)


------解决方案--------------------
将header注释掉就知道什么错误了。
------解决方案--------------------
一般都是GD库有问题.才会有这种提示.
------解决方案--------------------
别的浏览器有这种 问题的吗
------解决方案--------------------
单独执行 http://localhost/php100/gd2-1.php

------解决方案--------------------
一般是你GD 库的问题。 但是你的验证码生成代码 有错误也会出现这种错误问题。
------解决方案--------------------
是不是在输出图片之前有输出?我以前也遇到过
------解决方案--------------------
你需要在php设置->php扩展->php_gd2选择上,然后重启所有服务器;如果没有php_gd2那就需要添加扩展php_gd2

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!