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