Php gd lib installed but not working

On the local host, the library works fine, when the function is called when it is created, php causes a fatal rejection.

i checked phpinfo () there and it is on.

I am tired of seeing if there is anything that I can add on php.ini, but I could not find. The error is called when I call

gd_info();

Is there anything I can add to the php.ini file that can solve this problem, or is there another library for gd?

Error receiving data is as follows

Fatal error: Call to undefined function gd_info(
+3
source share
1 answer

I had exactly the same problem

although I installed it with apt-get install php7.0-gd, this function was undefined, so I checked the file php.iniin/etc/php/7.0/apache2/php.ini

it turned out that the line for the gd extension was commented out!

!

: D

+1

All Articles