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.