imagecreatefromgif 这个函数可以用

解决方案 »

  1.   

    Fatal error: Call to undefined function: imagecreatefromgif() ???
    你的gd版本是多少?改用
    $imgstream = file_get_contents(图片名);
    $im = imagecreatefromstring($imgstream);
      

  2.   

    2.0的  imagecreatefromgif()  不能用用了你的后面的方法 提示:Warning: No GIF support in this PHP build in d:\web\Upload.php on line 87
      

  3.   

    刚试了一下  1.6.2 的也不能用。我的php是4.3.4版的
      

  4.   

    可以用了~      原來是以前版本的extensions 下文件沒換用新版本的造成的  谢谢了
      

  5.   

    to xuzuning(唠叨):
    改用
    $imgstream = file_get_contents(图片名);
    $im = imagecreatefromstring($imgstream);---
    Warning: imagecreatefromstring() [function.imagecreatefromstring]: No GIF support in this PHP build in xxxxx.php