Php verification code error Calltoundefinedfunctionimagecreatetruecolor () multiple methods ineffective solution

Source: Internet
Author: User
Php verification code error Calltoundefinedfunctionimagecreatetruecolor () multiple methods invalid I just learned PHP to get the verification code. I found a lot of debugging on the Internet and reported the unified error Calltoundefinedfunctionimagecreatetruecolor (). I checked it; extensionphp_gd2.dll php verification code error Call to undefined function imagecreatetruecolor () multiple methods are invalid
I found a lot of the verification code I just learned in PHP.

Errors are reported during debugging.

Call to undefined function imagecreatetruecolor ()

I checked it.

Description
; Extension = php_gd2.dll
Remove the frontend in php. ini;
Run php_gd2.dll under ext in the php directory to c: \ windows \ system32, and restart apache.

I have restarted my computer many times, but I still cannot.

By accident, it may be that the problem with the GD Library was found that the address was not downloaded by the XP system.

Thanks for your advice.

------ Solution --------------------
Basically, the gd2.dll extension is not supported normally.
Change php version
------ Solution --------------------
Wamp more simply click the wamp icon and select php settings-> php extensions-> php_gd2. there is a small triangle in front of it to indicate that it has started.
Then apache will be automatically restarted to use phpinfo () to check if there is any GD extension.
------ Solution --------------------
It may be that the configuration file is incorrect. The wamp php. ini configuration file should be changed through its menu. it is not the php directory, but under apache.
------ Solution --------------------
Does gds32.dll exist?
------ Solution --------------------
1. Will the version be too low? This method is not supported
2. there is no change file in gd2.dll. if there is any change file, download one online.
3. php. ini file search; extension = php_gd2.dll: remove the semicolon from the front. if this sentence does not exist, add one (of course, do not include a semicolon, which is the meaning of comment out) and save and exit.
------ Solution --------------------
1. version is too low to support
2. php. ini file search; extension = php_gd2.dll: remove the semicolon from the front. if this sentence does not exist, add one (of course, do not include a semicolon, which is the meaning of comment out) and save and exit.
3. if the gd2.dll file exists or not, download one from the Internet.
Restart the apache server.
------ Solution --------------------
Did not open the gd Library, practice: php. ini file search; extension = php_gd2.dll, remove the semicolon above

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.