如何在我的 Windows 服务器版本的 PHP 上安装 GD
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/7851011/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
How do I install GD on my windows server version of PHP
提问by Mazatec
I am running Windows Server 2003 and need to install a version of GD.
我运行的是 Windows Server 2003,需要安装一个 GD 版本。
Can anyone point out some instructions or advice?
谁能指出一些指示或建议?
回答by xdazz
Check php_gd2.dll
is in your extension directory and uncomment ;extension=php_gd2.dll
of your php.ini
.
检查php_gd2.dll
在您的扩展目录中并取消注释;extension=php_gd2.dll
您的php.ini
.
回答by Richard Edwards
You need to edit your php.ini (found in your C:/PHP folder if you installed PHP here). Add the following line (or remove the ; before it if it exists in there):
您需要编辑您的 php.ini(如果您在此处安装了 PHP,则可以在您的 C:/PHP 文件夹中找到)。添加以下行(如果存在,则删除它之前的 ;):
extension=php_gd2.dll
扩展名=php_gd2.dll
回答by FVVID
In Windowsdownload related Debug Pack on php.net download page, it's contain most useful modules. After, uncomment related extension, for example to gd2:
;extension=php_gd2.dll on php.ini
and uncomment extension_dir = "ext"
.
在php.net 下载页面上的Windows下载相关调试包中,它包含最有用的模块。之后,取消注释相关的扩展名,例如 gd2:
;extension=php_gd2.dll on php.ini
和取消注释extension_dir = "ext"
。