Thinkphp,onethink and Thinkox The verification code does not display the resolution analysis, Thinkphpthinkox
The examples in this article describe the workarounds that the CAPTCHA does not display in Thinkphp,onethink and Thinkox. Share to everyone for your reference, as follows:
When using the verification code, it starts normally and then does not show the
Online said is utf-8 coding problem, what BOM removed, converted to a non-BOM format
I've tried, it's useless.
Later I knew it was written in the place where the code was called.
Public Function Verify () {Import (' ORG. Util.image '); Image::buildimageverify ();}
Change it to this:
Public Function Verify () {Import (' ORG. Util.image '); Ob_clean ();//This is the key image::buildimageverify ();}
Ob_clean This function is used to discard the contents of the output buffer, if your site has a lot of generated picture class files, you want to access the correct, you should always clear the buffer.
More interested in thinkphp related content readers can view this site topic: "thinkphp Introductory Tutorial", "thinkphp Common Method Summary", "PHP Cookie Usage Summary", "Smarty Template Primer Basic Tutorial" and "PHP template technology Summary."
It is hoped that this article is helpful to the PHP program design based on thinkphp framework.
http://www.bkjia.com/PHPjc/1133848.html www.bkjia.com true http://www.bkjia.com/PHPjc/1133848.html techarticle Thinkphp,onethink and Thinkox The verification code does not display the resolution analysis, Thinkphpthinkox This article describes the Thinkphp,onethink and thinkox the verification code does not display the resolution. Share to ...