A login interface written in the TP framework can display the verification code image. However, after the project is transplanted, the verification code image cannot be displayed, but only one white box is displayed, there is no content for the verification code image. The page displays: Hope to answer!
A login interface written in the TP framework can display the verification code image. However, after the project is transplanted, the verification code image cannot be displayed, but only one white box is displayed, the content of the Verification Code image is not displayed on the page:
Hope to answer!
Reply content:
A login interface written in the TP framework can display the verification code image. However, after the project is transplanted, the verification code image cannot be displayed, but only one white box is displayed, the content of the Verification Code image is not displayed on the page:
Hope to answer!
It is estimated that there are other outputs, orBOMHeader
InverifyImgStartob_clean();,
Check whether the PHP file isutf-8NoneBOM
If the GD library is enabled, check whether freetype is installed. If freetype is not enabled, reinstall PHP.
You have encountered this problem a few years ago. Here, the reason is very simple. You don't know what editor you use with the UTF8 BOM header. just remove it.
For example, use Sublime to set it.
Define ('debug', true );
VerifyImg method end
Header ('text/html ');
Let's see how error messages are prompted.
For a Chinese image, check whether mbstring is enabled in php. ini.
Ob_clean ();