English 中文(简体)
未界定功能图象,从Sphp8 中的jpeg 安装
原标题:Undefined function imagecreatefromjpeg in php8 with gd installed

我已将我的专用服务器的php版本更新至8.1.4,现在则更新了<条码>从jpeg功能中转来的剂量。 我使GD得以在php.ini 上推广。 我运行了<代码>sudo apt-getstal php8.1-gd,并重新启用。

当我操作<条码>php -i ep-i gd。 我这样做:

GD Support => enabled
GD headers Version => 2.2.5
GD library Version => 2.2.5
gd.jpeg_ignore_warning => 1 => 1

现行法典,以前曾与第7号单元合作:

$source = imagecreatefromjpeg($filename);

对我来说,所有事情都是正确的,因此,没有任何理由让营地不承认这一职能。

如果有人能够帮助解决这一问题,我真的感激。

问题回答

如果您使用xampp或 w,请查阅php.ini文档。

之后,这 了。

;extension=gd

to this.

extension=gd

there you have it. to find the php.ini file open your xampp control panel, click on apache config, then select php.ini,

然后,你发现,延长期限后,分界线一开始,分界线就拆除了半殖民地。





相关问题
Using SimplePie with CodeIgniter and XAMPP

I am using CodeIgniter 1.7.2 with XAMPP 1.7.2 on a Windows computer. I am trying to make use of SimplePie. I followed all the instructions I could find: a copy of simplepie.inc is in my applications/...

Multiple Sites with common files

I have developed over 50 sites that all use the exact same files other than CSS and IMAGES, I currently duplicate the files each time I create a new site and upload different css and images. What ...

http server validation

I finish a litle http server, writing from scratch. I would like to be sure that my imlementation is conforme to the HTTP specifications. W3C give us tools for HTML/XML conformance, but i see nothing ...