J'ai ce script:Appel à imagefttext undefined function()
<?php
$im = imagecreatetruecolor(300, 150);
imagettftext($a, $b, $c, $d, $e);
imagepng($im);
?>
Je compilé avec:
Configure Command => './configure' '--enable-bcmath' '--enable-calendar' '--enable-exif' '--enable-ftp' '--enable-magic-quotes' '--enable-mbstring' '--enable-sockets' '--with-bz2' '--with-curl' '--with-gd' '--enable-gd-native-ttf' '--with-jpeg-dir=/opt' '--with-png-dir=/opt' '--with-gettext' '--with-imap' '--with-imap-ssl' '--with-kerberos' '--with-mcrypt' '--with-mysql' '--with-mysqli' '--with-openssl' '--with-zlib' '--enable-zip'
Je reçois l'erreur suivante
PHP Fatal error: Call to undefined function imagefttext() in /root/test.php on line 9
Je courais CentOS , et j'ai gd-devel, freetype-devel, parmi d'autres paquets. Je ne sais pas pourquoi ça ne marche pas. Quelqu'un a des idées?
Merci d'avance!
Le code que vous manifestez est différente de la message d'erreur –
Mon mauvais. Erreur irrécupérable: Appel à la fonction indéfinie imagettftext() – Tech163
'Cette fonction requiert à la fois la bibliothèque GD et la bibliothèque» FreeType. – mario