Thinkphp, onethink and thinkox do not show the Solution Analysis, thinkphpthinkox
The example in this article describes the solution for not displaying verification codes in thinkphp, onethink, and thinkox. We will share this with you for your reference. The details are as follows:
When the verification code is used, it is normal at the beginning and will not be displayed later.
It is said on the Internet that UTF-8 encoding is a problem. What bom should be removed and converted to a non-bom format?
I tried it all. It's useless.
Later I learned that I wrote it at the place where I called the verification code.
Public function verify () {import ('org. Util. image'); Image: buildImageVerify ();}
Just change it to this:
Public function verify () {import ('org. Util. image'); ob_clean (); // This is the key Image: buildImageVerify ();}
The ob_clean function is used to discard the content in the output buffer. If your website has many generated image files, you need to clear the buffer frequently if you want to access the files correctly.