Using the TP framework to write a landing interface, originally can display the verification code picture, but after the project has been transplanted, can not display the verification code picture, only display a white box, there is no verification code picture content, page display:
Look for answers!
Reply content:
Using the TP framework to write a landing interface, originally can display the verification code picture, but after the project has been transplanted, can not display the verification code picture, only display a white box, there is no verification code picture content, page display:
Look for answers!
Other outputs are estimated, or the BOM
head
At the verifyImg
very beginning ob_clean();
,
Check again if the PHP file is utf-8
notBOM
If you open the GD library, see if you have installed FreeType, no freetype to reinstall PHP
You this question, I also met a few years ago, look here, the reason is very simple, your code file does not know what editor with the UTF8 BOM head, remove the good.
For example, the use of sublime set up a bit better.
Define (' DEBUG ', true);
Verifyimg method End Plus
Header (' text/html ');
And look at the error message.
If it is a Chinese picture, see if the php.ini is open mbstring
Ob_clean ();