ThinkPHP verification code display problems, please explain! -Php Tutorial

Source: Internet
Author: User
ThinkPHP verification code display problems, please explain !!! This is the code: & lt; p & gt; verification code: & lt; input & nbsp; typetext & nbsp; namevircode & nbsp; onkeyupreturn & nbsp; login_chkcode (& nbsp; this & nbsp;); & nbsp; & nbs ThinkPHP verification code display question. please explain it !!!
This is the code:

Verification code:


Then the local display is normal:

And then upload it to the server:

Then ff reports the following error:

This is the verification code:
Function verify (){
Import ("ORG. Util. Image ");
Image: buildImageVerify ();
}


Please help us to see how this will not be displayed after it is uploaded to the server ??
------ Solution --------------------
Function fleshVerify (){
// Reload the verification code
Var timenow = new Date (). getTime ();
$ ('# VerifyImg'). attr ("src", "{: U ('admin-Login/verify/')}" + timenow );
} // This is js


// Have you uploaded the file completely?
------ Solution --------------------
Are the GD library extensions enabled on the server?

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.