都已经安装了GD库,但是还出现这个问题,高手帮忙看看!

slliang83 2005-04-11 10:31:08
php代码块:

<?php
Header("Content-type: image/gif");
$im = imagecreate(400,30);
$black = ImageColorAllocate($im, 0,0,0);
$white = ImageColorAllocate($im, 255,255,255);
ImageTTFText($im, 20, 0, 10, 20, $white, "c:/windows/fonts/verdana.ttf", "aaaaaaaaa");
ImageGif($im);
ImageDestroy($im);
?>

错误内容:
<br />
<b>Fatal error</b>: Call to undefined function: imagegif() in <b>D:\my work\stempsite\3.php</b> on line <b>7</b><br />

GD库信息:
gd
GD Support enabled
GD Version bundled (2.0.22 compatible)
FreeType Support enabled
FreeType Linkage with freetype
GIF Read Support enabled
JPG Support enabled
PNG Support enabled
WBMP Support enabled
XBM Support enabled
...全文
106 5 打赏 收藏 转发到动态 举报
写回复
用AI写文章
5 条回复
切换为时间正序
请发表友善的回复…
发表回复
xuzuning 2005-04-11
  • 打赏
  • 举报
回复
gd 2.0.28随php4.3.11及以上和php5.0.1及以上发行
bthl 2005-04-11
  • 打赏
  • 举报
回复
GD库没有问题

D:\my work\stempsite\3.php
on line 7
slliang83 2005-04-11
  • 打赏
  • 举报
回复
那怎样升级GD库阿?
xuzuning 2005-04-11
  • 打赏
  • 举报
回复
你的gd库的版本低了,要2.0.28以上才能支持gif图片生成
GIF Create Support
fyxw 2005-04-11
  • 打赏
  • 举报
回复
有段时间没用过GD了,好象记得GD2是不支持生成gif的还是怎么,你试一下换成jpg或png

21,891

社区成员

发帖
与我相关
我的任务
社区描述
从PHP安装配置,PHP入门,PHP基础到PHP应用
社区管理员
  • 基础编程社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧