我收到了这个错误

Call to undefined function imagecreatefromjpeg() 

阅读后我需要重新编译PHP

- ./configure --with-jpeg-dir=/usr/lib OR any other directory which contains the BINARY library of libjpeg

但是什么目录,是否有我需要启用的模块…

解决方法:


sudo apt-get install php5-gd
/etc/init.d/apache2 restart

标签: php, gd

相关文章推荐

添加新评论,含*的栏目为必填