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