PHP GD支持问题 [英] PHP GD support problem

查看:78
本文介绍了PHP GD支持问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨!我使用从php.net下载的zip包中提取的php5。我已经在php.ini和extension_dir上设置了php_gd2.dll扩展。但是,每次使用GD功能时,我仍然会得到错误的未定义函数。我读到我必须配置支持GD的php。如何用php5做到这一点。我还下载了GD lib,但不知道如何配置它或如何配置它。请建议。


新手PHP开发人员

Hi! I am using php5 extracted from the zip package downloaded from php.net. I have already set the php_gd2.dll extension at the php.ini as well as the extension_dir. However, I still get error undefined function everytime I use a GD function. I read that I have to configure php with GD support. How to do that with php5. I have also downloaded the GD lib but don''t know how or what to do to configure it. Please advies.

A novice PHP developer

推荐答案

@rsbgm


首先,你在使用什么操作系统? (即:Windows,Linux等)。其次,你说你得到错误。你能发帖吗?


问候,


杰夫
@rsbgm

First, what OS are you on? (ie: Windows, Linux, etc). Second, you say you are getting errors. Can you please post them?

Regards,

Jeff


你好Jeff,
我在Windows XP专业版上。我得到的错误是:


致命错误:在第2行的C:\ Inetpub \ www.root \ MyWeb \ image_test.php中调用未定义的函数imagecreatetruecolor() />

代码为:

Hi Jeff,
I''m on Windows XP Pro. The error I get is:

Fatal error: Call to undefined function imagecreatetruecolor() in C:\Inetpub\wwwroot\MyWeb\image_test.php on line 2

The code is:

展开 | 选择 | Wrap | 行号


你有没有通过所有步骤这里?你有没有取消注释php.ini文件中的gd扩展行?
Have you gone through all the steps here? Have you uncommented the gd extension line in the php.ini file?

但是在没有安装GD2的情况下调用它将发出致命错误并退出。
but calling it without GD2 being installed PHP will issue a fatal error and exit.


这篇关于PHP GD支持问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆