php 报这个错Call to undefined function imagecreatetruecolor() ,解决办法

我要冲啦个人网站建设2023-07-10php
这个错是,php没有加载到gd库。

;extension=php_gd2.dll

或者

;extension=gd2

在php.ini中去掉前边的;

然后将php目录中的ext下的php_gd2.dll拷入c:\windows\system32,重启apache

前面这段都试过的话,没用的话  。那就这样改一下路径 extension_dir = “ext全路径”,

例如我的路径是这样的   extension_dir = "F:\phpstudy_pro\Extensions\php\php7.3.4nts\ext"

文章关键词
php
Call to undefined function imagecreatetruecolor