What is the GD library for? It is the PHP processing graphics extension Library, the GD library provides a series of APIs for processing pictures, using the GD library can process pictures, or generate pictures. GD Library in PHP default is not open, if you want it to support image processing function, then you need to manually open the GD library
There are two ways to find the php.ini file:
1. Method One: Locate the path Wamp\bin\mysql\mysql5.5.24\php.ini in the Wampserver installation directory (the root directory I installed is D-disk)
2. Method Two: Start Wampserver, click Taskbar wamp icon, check PHP, see php.ini, click to enter php.ini file
3. Open php.ini File
4. Use the Find tool to find the Extension=php_gd2.dll, and put the ";" in front of the Extension=php_gd2.dll.
5. Test whether to use the GD library, the code is as follows:
6. You can use the GD library to run