imagecreatefromjpeg and similar functions are not working in PHP

前端 未结 11 1011
攒了一身酷
攒了一身酷 2020-12-08 09:06

I’ve searched for this and the solutions provided in past questions are completely incomprehensible to me. Whenever I run functions like imagecreatefromjpeg, I

11条回答
  •  有刺的猬
    2020-12-08 09:40

    In CentOS, RedHat, etc. use below command. don't forget to restart the Apache. Because the PHP module has to be loaded.

    yum -y install php-gd
    service httpd restart
    

提交回复
热议问题