<?php 
header("Content_type:image/png"); 
$im = imagecreate(200, 100) or die ("无法创建数据图像流"); 
imagecolorallocate($im,140,150,255); 
$t_color1 = imagecolorallocate($im,0,0,0); 
$t_color2 = imagecolorallocate($im,100,100,100); 
imagestring($im,5,8,10, "I like PHP5!", $t_color1); 
imagestringup($im,5,8,90,"Hello!", $t_color2); 
imageellipse($im,65,65,55,55,$t_color1); 
imageellipse($im,65,65,55,55,$t_color1); 
imagefilledrectangle($im,110,95,160,30,$t_color2); 
imagepng($im); 
imagedestroy($im); 
?> 
  报错的信息是:Fatal error: Call to undefined function imagecreate() in D:\myweb\8.php on line 3 请问 具体怎么解决  急求 谢谢我的php.ini中的extension=php_gd2.dll前面的;已经去掉了 
但还是不能加载gd库  是怎么回事 gd库 就在php中的ext里面

解决方案 »

  1.   

    报错的信息是:Fatal error: Call to undefined function imagecreate() in D:\myweb\8.php on line 3看一下
      

  2.   

    九成九是没有php_gd2.dll这个, 看一下扩展目录有没, 没就下载个
      

  3.   


    应该说没加载到, 你打 phpinfo()看有没
      

  4.   


    是phpinfo()里显示的扩展库路径里有没这个php_gd2.dll
      

  5.   

    将 gds32.dll 置于操作系统的搜索路径中
      

  6.   

    有php_gd2.dll这个文件  就是不能加载 在php_info 里面 也没有gd库的那一项
     各位 帮忙解决一下
      

  7.   

    Content-type