Thinkphp,onethink and Thinkox solution Analysis, thinkphpthinkox_php tutorial

Source: Internet
Author: User

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 ...

  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.