PHP Open GD Library Implementation Method _php tutorial

Source: Internet
Author: User
GD Library in PHP default is not open, if you want it to support the image processing function we need to php.ini in the Extension=php_gd2.dll to remove the front;

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

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

Also attach how to check if the GD library code has been installed!

The code is as follows Copy Code

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

The results are shown as: 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,

Configure Command After the display is:

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. Permissions issues;

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

http://www.bkjia.com/PHPjc/629834.html www.bkjia.com true http://www.bkjia.com/PHPjc/629834.html techarticle GD Library in PHP default is not open, if you want it to support the image processing function we need to php.ini in the Extension=php_gd2.dll to remove the front; In Windows services ...

  • 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.