、到http://www.mm4.de/php4win/download.php3?strFile=php4.0.4-dev-win32-20001123.zip 下载php4.0.4-dev-win32-20001123.zip
2、解压缩php4.0.4-dev-win32-20001123.zip,找到php_gd_gif.dll文件。 3、把php_gd_gif.dll
拷贝到php4.0.3extensions下(其他扩展库所在的目录)。 下载地址:http://216.87.7.32/php/php_gd_gif.zip 

解决方案 »

  1.   

    下载地址:http://216.87.7.32/php/php_gd_gif.zip (160K). 首先把文件解压,然后把php_gd_gif.dll 改名为 php_gd.dll, 
    拷贝到 extensions 目录,修改 PHP.ini ,增加 extension=php_gd.dll。 
    该库支持 GIF, PNG, WBMP 和 JPEG,但只对 PHP4 有效。 示范例子: 
    (本例已经在本人的PHP4+W2KPro+Apache1.3.12 上成功通过) 
    需要说明的是: 
    如果你的 dll 文件和php.exe 在同一个目录下那么 
    extension_dir = . 
    当然,修改完毕后,别忘记重新启动Web Server <?php /* Header( "Content-type: image/jpeg"); */ 
    Header( "Content-type: image/gif"); /* create image */ 
    $image = imagecreate(200,200); /* create color R=100, G=0, R=0 */ 
    $maroon = ImageColorAllocate($image,100,0,0); /* create color R=255, G=255, R=255 */ 
    $white = ImageColorAllocate($image,255,255,255); /* create color green */ 
    $green = ImageColorAllocate($image,0,100,0); /* create white background*/ 
    ImageFilledRectangle($image,0,0,200,200,$white); /* create frame*/ 
    ImageRectangle($image,10,10,190,190,$maroon); /* create inner rectangle*/ 
    ImageFilledRectangle($image,50,70,150,150,$maroon); /* display 5 fonts */ 
    for ($i=1; $i <= 5; $i++) 
    ImageString($image,$i,15,$i*10,'www.oso.com.cn',$green); /* render image */ 
    /* ImageJPEG($image); */ 
    ImageGIF($image); /*cleanup memory */ 
    ImageDestroy($image); 
    ?>