bodyandsoul
Neues Mitglied
Hallo,
ich habe ein kleines Problem mit meinen Code und weiß nicht woran es liegen könnte...
ich habe folgenden Code:
und folgenden Fehler
Fatal error: Call to undefined function imagettfbbox() in /srv/www/httpd/**/*/**/**/**/**/**/captcha/captcha.php on line 9
DIe Function gibt es aber ... aber warum kommt der Fehler ?
Könnt ihr mir helfen ?
ich habe ein kleines Problem mit meinen Code und weiß nicht woran es liegen könnte...
ich habe folgenden Code:
PHP:
function captcha($randcode){
$ttf = "abs.ttf";
$fontsize = 25;
// HIERT KOMMT FEHLER !!!!
$field = imagettfbbox($fontsize, 0, $ttf, $randcode);
$img = imagecreate(150, 40);
$background_color = imagecolorallocate($img, rand(100,255), rand(100,255), rand(100,255));
$text_color = imagecolorallocate($img, 0, 0, 0);
imagefill($img, 0, 0, $background_color);
imagettftext($img, $fontsize, 0, rand(5,20), rand(26, 33), $text_color, $ttf, $randcode);
imagepng($img);
imagedestroy($img);
}
und folgenden Fehler
Fatal error: Call to undefined function imagettfbbox() in /srv/www/httpd/**/*/**/**/**/**/**/captcha/captcha.php on line 9
DIe Function gibt es aber ... aber warum kommt der Fehler ?
Könnt ihr mir helfen ?