imagecreatefromjpeg and similar functions are not working in PHP
Share :
| Asked on 2024-06-26 | • PHP Mysqli
Whenever I run functions like imagecreatefromjpeg, I get this:
Fatal error: Uncaught Error: Call to undefined function imagecreatefromjpeg() in
I’m working on a new install of PHP; my last installation never had this problem. I don’t get what’s going on.
TapGen
replied on 2024-06-30
If you have installed XAMPP with PHP 8 support then there are chances GD extension is not enabled by default. Please edit php.ini file add the following line somewhere and restart your XAMPP and Apache server.
Make sure your php.ini has this line enabled for PHP 8
If you have installed XAMPP with PHP 8 support then there are chances GD extension is not enabled by default. Please edit php.ini file add the following line somewhere and restart your XAMPP and Apache server.
Make sure your php.ini has this line enabled for PHP 8
For PHP lower than 8