PHP to open the implementation method of the GD library

Source: Internet
Author: User
Tags mssql

When the Windows Server opens the GD Library of PHP, the results of phpinfo () after using CGI do not appear in the Configure Command.

Find the php.ini file Extension=php_gd2.dll remove the front;

Also attached is how to detect if the GD library code has been installed!

The code is as follows Copy Code

<?php
if (extension_loaded (' GD ')) {
Echo ' You can use gd<br> ';
foreach (Gd_info () as $cate => $value)
echo "$cate: $value <br>";
}else
Echo ' You did not install GD extension ';
?>

The results show as follows: You can use GD
GD version:bundled (2.0.34 compatible)
FreeType support:1
FreeType Linkage:with FreeType
T1lib support:1
GIF Read support:1
GIF Create support:1
JPG support:1
PNG support:1
WBMP support:1
XPM Support:
XBM support:1
jis-mapped Japanese Font Support:


If there is a problem,

The Configure Command displays the following:

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 causes:

1. Question of competence;

2. Whether there is a problem with dual channels, or whether the hardware is loose

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.