How does PHP open the GD library?

Source: Internet
Author: User
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


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.