Home  >  Article  >  Backend Development  >  The GD library is open, why is my verification code not displayed when running on the win2003 server? _PHP Tutorial

The GD library is open, why is my verification code not displayed when running on the win2003 server? _PHP Tutorial

WBOY
WBOYOriginal
2016-07-13 10:51:01821browse




The GD library is open, why is my verification code not displayed when running on the win2003 server?

?PNG IHDRF 9???kIDATX???? ? ???a'? ????)Hu?HN? O??s ? ? ? ? ????@m}Fc ? =???JL}????Qr J D?(9 % ??@? ?? Qr J l?? ? П??r?IEND?B`?

Such an error is displayed, but the local XP system can display it normally. Please tell me what the reason is. The first thing I can confirm is that the GD library has been opened...

Let me answer




D8888D reply content------------------------------------------------- ----------
header('Content-Type: image/png');
imagepng($image);
imagedestroy($image);

D8888D reply content------------------------------------------------- ----------
No, the problem is still not solved....

D8888D reply content------------------------------------------------- ----------
But it works on this machine, but not after uploading, and the GD library is also opened. depressed.

D8888D reply content------------------------------------------------- ----------
GD2

D8888D reply content------------------------------------------------- ----------
It has nothing to do with the GD library. I checked and GD2 also exists....

D8888D reply content------------------------------------------------- ----------
It's obviously a header problem. Check it carefully

D8888D reply content------------------------------------------------- ----------
The problem was found, it was the BOM problem of UTF8! ! ! It's OK to remove it.


www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/632609.htmlTechArticleThe GD library is open, why is my verification code not displayed when running on the win2003 server! ?PNG IHDRF9???kIDATX???? ? ???a'?????)Hu?HN? O??s????????@m}Fc?=???JL} ????Qr JD?(9%??@???Qr Jl...
Statement:
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