Zdravim, mam takovej problem, a totiz ze skript:
<?
Header("Content-type: image/png");
$img = ImageCreate(200,200);
$bgcolor = ImageColorAllocate($img,"255","255","255");
ImageColorTransparent($img,$bgcolor);
$textcolor = ImageColorAllocate($img,"0","0","0");
ImageTTFText($img,10,0,5,60,$textcolor,"arial.ttf","TEXT");
ImagePng($img);
?>
vraci chybu Warning: Could not find/open font....
Nekdo rikal ze tam musi bejt absolutni adresa, ale to mne stejne
nefunguje......mozna to je tim ze nemam wokna ale linux.
Zkousel sem relativni adresy: nejdriv ./fonty/arial.ttf, pak arial.ttf
Zkousel sem i absoulutni: http://localhost/php/fonty/arial.ttf, i
file:/srv/www/php/fonty/arial.ttf a taky /srv/www/php/fonty/arial.ttf...
A nic nefunguje........nevim, mozna je to spatny pismo (zkopirovany z
windows...)
SuSE 8.1
PHP 4.2.2
GD Version 1.6.2 or higher
GD Support enabled
FreeType Support enabled
FreeType Linkage with freetype
Help me asap!