今天调用imagefilter函数总说无法找到,四处查阅资料,发现是GD问题
我的GD信息是
gd
GD Support  enabled  
GD Version  2.0 or higher  
FreeType Support  enabled  
FreeType Linkage  with freetype  
FreeType Version  2.3.12  
GIF Read Support  enabled  
GIF Create Support  enabled  
JPG Support  enabled  
PNG Support  enabled  
WBMP Support  enabled  
正常的应该是:
GD Support  enabled  
GD Version  bundled (2.0.34 compatible)  
FreeType Support  enabled  
FreeType Linkage  with freetype  
FreeType Version  2.2.1  
GIF Read Support  enabled  
GIF Create Support  enabled  
JPG Support  enabled  
PNG Support  enabled  
WBMP Support  enabled  说明我的GD安装了,但并未绑定,php配置参数如下
 ./configure --prefix=/usr/local/php --with-config-file-path=/usr/local/php --with-apxs2=/usr/local/apache2.2/bin/apxs --with-mysql=/usr/local/mysql --with-pdo-mysql=/usr/local/mysql --with-zlib=/usr/local/zlib2 --with-jpeg-dir=/usr/local/jpeg6 --with-png-dir=/usr/local/libpng2 --with-iconv=/usr/local/libiconv --disable-debug --with-gd=/usr/local/gd2 --enable-gd-native-ttf --with-curl --with-gettext=/usr/local/gettext/ --enable-zip --enable-mbstring --enable-ftp --enable-sqlite-utf8 --with-freetype-dir=/usr/local/freetype2 --with-png-dir=/usr/local/libpng2
反复安装,并试验了多个GD版本都没变化,请高人指点

解决方案 »

  1.   

    --with-gd 后面的路径不要了。 试试看看
      

  2.   

    你的php版本和gd的版本都是多少?看了下官方的文档,如果路径都没问题的话,操作应该是没有问题的
    http://www.php.net/manual/en/image.installation.php
    <?php
    var_dump(gd_info());
    ?>
    打印一下当前的gd信息看看
    注意每次重装完php,都要把apache stop之后,再start才生效
      

  3.   

    gd-2.0.35
    PHP Version 5.2.13 
      

  4.   

    本帖最后由 PhpNewnew 于 2012-02-14 16:08:08 编辑