PHP verification code generated by a separate call with the actual string does not match the voice Code authentication code authentication Code

Source: Internet
Author: User
I wrote a PHP verification code class, and later debugging found that when the code generated by invoking the PHP file, the verification code on the image is always inconsistent with the actual verification code string, but when the file embedded in the HTML is not the problem, everything is normal, very strange.

The study of a half-day did not find out where the problem, the head is very large, and then the Internet under a few other people write PHP verification code class, also basic has this problem, because the pondering spent a relatively long time, so think or temporarily put put.

In addition, when the page calls that PHP file, found in this page to read the verification code session value is always slow, because require_once, such as the way the introduction of files seems to be asynchronous, not for their own sake of synchronization, resulting in inconsistent with their own ideas results. Well, this is the morning meeting these two problems.

The above describes the PHP verification code generated by the separate call and the actual string does not match, including the verification code, string aspects of the content, I hope to be interested in PHP tutorial friends helpful.

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