dnf install php-gd systemctl restart httpdThen you will be able to use imagecreate()
Programming Tips - PHP: Fatal error: Call to undefined function imagecreate() in myprogram.php on line number
Date: 2010mar26
Date: 2026aug31
Language: php
OS: Linux
Q. PHP: Fatal error: Call to undefined function imagecreate() in <myprogram>.php on line <number>
A. This is probably because The php-gd library is either not installed or not enabled. It could also be that your php is compiled with this disabled - but that's unlikely.
So do: