Kożystam z klasy @Balon -a
http://forum.php.pl/index.php?showtopic=68821&hl=token
Na lokalu wszystko ladnie sie generuje a kiedy wrzucam na serwer to pokazuje mi się błąd
Kod
Warning: imagettftext() [function.imagettftext]: Could not find/open font in /skowron/classes/token.class.php on line 120
Spojrzałem sobie i biblioteka GD jest dostępna.
Próbowałem również zrobić tak
<?php include_once( 'classes/token.class.php' ); $token = new Token(5, new TokenBackground_Dots ); $token->_fontDir = 'fonts/'; $token->getToken(); ?>
Ale błąd nadal się pojawia i obrazek się nie generuje.
Z góry dziękuje za pomoc