The image of the dwz_thinkphp Verification Code cannot be displayed.

Source: Internet
Author: User
Tags apache error log
Recently I plan to learn about dwz_thinkphp, copy the source code, and find that the verification code on the login page cannot be properly displayed. Search for the apache error log, which prompts PHPFatalerror :? Calltoundefinedfunctionimagecreate () found through the PHP manual query, This is a function in the gd library. That is to say, the GD library is not installed or not

Recently I plan to learn about dwz_thinkphp, copy the source code, and find that the verification code on the login page cannot be properly displayed. Search for the apache error log, which prompts PHP Fatal error :? Call to undefined function imagecreate () found through the PHP manual query, This is a function in the gd library. That is to say, the GD library is not installed or not

Recently I plan to learn about dwz_thinkphp, copy the source code, and find that the verification code on the login page cannot be properly displayed. Search for the apache error log, which prompts PHP Fatal error :? Call to undefined function imagecreate ()

Through the PHP manual query, we found that this is a function in the gd library. In other words, if the GD library is not installed or is not correctly installed, reinstall the GD library of PHP.

Under centos

Yum search php | grep gd # php-gd.x86_64: A module for PHP applications for using the gd graphics librarysudo yum install php-gd.x86_64sudo service httpd restart

Original article address: the image of the dwz_thinkphp Verification Code cannot be displayed. Thank you for sharing it with the original author.

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.