Solution for php5.3 verification code not displayed: 1. Find the configuration file and open the GD library; 2. Change "imagegif()" to "imagepng()".
The operating environment of this article: windows7 system, php5.3 version, DELL G3 computer
Why does the verification code not display? manage?
The code was originally running on php5.2 and there was no problem at all.
Later it was transplanted to php5.3 and the verification code no longer appeared.
The code has not been changed, and the GD library is also open. I don’t know why it just doesn’t come out. .
Later I changed my method while I was guessing.
Replaced
imagegif()
with
imagepng()
and came out. .
Recommended learning: "PHP Video Tutorial"
The above is the detailed content of What to do if the verification code does not display in php5.3. For more information, please follow other related articles on the PHP Chinese website!