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?
?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.