Understanding the GD2 function library

Source: Internet
Author: User
Tags phpinfo
PHP is currently in the field of web development has been widely used, PHP can not only generate HTML pages, but also can create and manipulate binary forms of data, like, files and so on. The use of PHP operation graphics can be achieved through the GD2 function library. Using the GD2 function library, you can draw various images and graphs in the page, and if combined with Ajax technology, you can create powerful dynamic graphs. The GD2 Library is an open, dynamically created library of source code for the creation of images. Currently, the GD2 library supports multiple image formats such as GIF, PNG, JPEG, Wbmp, and XBM.

The GD2 function library in PHP5 has been installed by default as an extension, but in some versions, the php.ini file needs to be set up to activate the GD2 function library. Open the php.ini file with a text editor, which will be in the file "; Extension=php_gd2.dll "statement before the semicolon, then save the modified file and restart the Apache server.

After successfully loading the GD2 library, the phpinfo () statement can be used to obtain installation information for the GD2 library and verify that the GD library is successfully installed.

 
 

The above describes the understanding of the GD2 function library, including the D2,GD aspects of the content, I hope that the PHP tutorial interested in a friend helpful.

  • Related Article

    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.