PHP发生Call to undefined function imagecreate()错误的解决办法
来源:互联网 发布:公安部软件检测中心 编辑:程序博客网 时间:2024/05/23 02:01
原文地址
在使用PHP处理一些图像时,有时会出现诸如这样的错误:Call to undefined function imagecreate()
这是由于没有安装或是没有开启php的gd库导致的问题。
解决方案:
一、在Linux系统(这里用的是Ubuntu系统)下
首先在终端输入下列命令:
- sudo apt-get install php5-gd
- sudo service apache2 restart
二、在windows系统下
打开php安装目录下的php.ini配置文件,找到这一行:
- ;extension=php_gd2.dll
最后重启下服务器就行了。
阅读全文
0 0
- PHP发生Call to undefined function imagecreate()错误的解决办法
- PHP发生Call to undefined function imagecreate()错误的解决办法
- PHP发生Call to undefined function imagecreate()错误的解决办法
- PHP error: Call to undefined function imagecreate()的解决办法
- error: Call to undefined function imagecreate()的解决办法
- Call to undefined function imagecreatetruecolor() imageCreate() 的gd库解决办法
- Call to undefined function imagecreate()
- php 提示Call to undefined function curl_init() 错误的解决办法
- php提示Call to undefined function curl_init() 错误的解决办法
- PHP Fatal error: Call to undefined function ImageCreate()
- PHP:Call to undefined function curl_init()解决办法
- PHP: Call to undefined function imageconvolution() 错误
- PHP错误:call to undefined function imagecreatetruecolor
- ThinkPHP Call to undefined function Think\imagecreate解决
- 从根本解决“Call to undefined function Think\imagecreate()”
- php在iis上配置时报Fatal error: Call to undefined function mysql_connect() in 错误解决办法
- joomla错误 Fatal error: Call to undefined function simplexml_load_file() 解决办法!
- PHP Fatal error: Call to undefined function mcrypt_module_open()解决办法
- SRS(simple-rtmp-server)流媒体服务器源码分析--RTMP消息play
- python3将csv文件中的两列数据读取出来,并且按行写入txt文本之中
- lua堆栈操作
- 最近事项 EDTKEY
- Python 在 MySQL 中读取、写入数据
- PHP发生Call to undefined function imagecreate()错误的解决办法
- 读取csv文件的指定行 python3
- java异常学习整理
- 代码优化:饱和处理的分支优化
- CentOS7下编译安装 nginx1.12.0
- MVP+Retrofit+Rxjava实战
- python matlibplot绘制3D图形
- JavaScript操作DOM对象
- php 组件编程