GD2 扩展是否随 PHP 一起提供?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/5936792/
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
Does the GD2 extension come with PHP?
提问by Hugo Mota
Does the GD2 extension come with PHP by default? If yes, since what version does it happen? Is it enabled by default?
GD2 扩展是否默认随 PHP 一起提供?如果是,从哪个版本发生?是否默认启用?
thanks (:
谢谢 (:
采纳答案by James C
GD isn't compiled with PHP by default but is included with many binary distributions of PHP.
默认情况下,GD 不是用 PHP 编译的,而是包含在许多 PHP 二进制发行版中。
Full details/instructions are here: http://www.php.net/manual/en/image.setup.php
完整的详细信息/说明在这里:http: //www.php.net/manual/en/image.setup.php
回答by i.am.michiel
On windows system, it is generally delivered but not installed. You can enable it by decommenting the section in the php.ini file.
在windows系统上,一般是交付的,不安装的。您可以通过对 php.ini 文件中的部分进行注释来启用它。
On Linux systems (Debian & Ubuntu), on a default installation, it is activated. Rather than doing it in command line as suggests : Atticus, give it a try with a php info!
在 Linux 系统(Debian 和 Ubuntu)上,在默认安装中,它被激活。而不是按照建议在命令行中执行:Atticus,请尝试使用 php 信息!
<?php
phpinfo();
?>
If GD is installed, you'll see it on that page. ;)
如果安装了 GD,您将在该页面上看到它。;)
回答by Atticus
Hmm I think i had to install mine on my server
嗯,我想我必须在我的服务器上安装我的
do you have access to your server or is it a shared server?
您可以访问您的服务器还是共享服务器?
If so -- check if php5-gd is installed
如果是 - 检查是否安装了 php5-gd