Home >Backend Development >PHP Tutorial >PHP opens the GD library (windows environment)

PHP opens the GD library (windows environment)

WBOY
WBOYOriginal
2016-07-25 08:55:201407browse
  1. if(extension_loaded('gd')) {
  2. echo 'You can use gd
    ';
  3. foreach(gd_info() as $cate=>$value)
  4. echo "$ cate: $value
    ";
  5. }else
  6. echo 'gd extension is not installed';
  7. ?>
Copy the code

The result is displayed as:

You can use gd GD Version: bundled (2.0.34 compatible) FreeType Support: 1 FreeType Linkage: with freetype T1LibSupport: 1 GIF Read Support: 1 GIF Create Support: 1 Support: 1 PNG Support: 1 WBMP Support: 1 XPM Support: XBM Support: 1 JIS-mapped Japanese Font Support:

If there is a problem, it will be displayed after Configure Command:

1 cscript /nologo configure.js "--enable-snapshot-build" "--disable-isapi" "--enable-debug-pack" "--without-mssql" "--without-pdo-mssql" "- -without-pi3web" "--with-pdo-oci=C:php-sdkoracleinstantclient10sdk,shared" "--with-oci8=C:php-sdkoracleinstantclient10sdk,shared" "--with-oci8-11g=C:php- sdkoracleinstantclient11sdk,shared" "--enable-object-out-dir=../obj/" "--enable-com-dotnet=shared" "--with-mcrypt=static" "--disable-static-analyze" "--with-pgo"

Possible reasons: 1. Permission issues; 2. Is there a problem with the dual channel, or is the hardware loose, etc.

>>>> Articles you may be interested in: php GD library code to upload images and create thumbnails Example of php GD library generating verification code Solution to Chinese garbled characters in php GD library Example of php verification code (GD library generates verification code) Introduction to how to enable gd2 extension in php How to install php GD support library under Linux Php GD library example code for drawing 24-hour histogram Example code for dynamically generating line charts with PHP GD library php thumbnail generation class (supports imagemagick and gd library)



Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn