hi
hm hab zwar das falsche script gepostet hab es aber so getestet und siehe her es funkt!!
ABER

ABER

ABER
ich hab noch immer meine 3 test datein im ordner /var/www/
PHP-Code:
<?
header('Content-type: image/png');
$text = "mein text"; //Zufallszahl
$img = imagecreatefrompng('test.png'); //Backgroundimage
$color = imagecolorallocate($img, 255, 255, 255); //Farbe
$ttf = "test.ttf"; //Schriftart
$ttfsize = 20; //Schriftgrösse
$angle = rand(0,5);
$t_x = rand(1,5);
$t_y = 45;
imagettftext($img, $ttfsize, $angle, $t_x, $t_y, $color, $ttf, $text);
imagepng($img);
imagedestroy($img);
?>
funkt nicht mit der meldung (Die Grafik "http://192.168.0.2/test.php" kann nicht angezeigt werden, weil sie einen fehler enthält.)
PHP-Code:
<?
header('Content-type: image/png');
$text = "mein text"; //Zufallszahl
$img = imagecreatefrompng('test.png'); //Backgroundimage
$color = imagecolorallocate($img, 255, 255, 255); //Farbe
$ttf = "../www/test.ttf"; //Schriftart
$ttfsize = 20; //Schriftgrösse
$angle = rand(0,5);
$t_x = rand(1,5);
$t_y = 45;
imagettftext($img, $ttfsize, $angle, $t_x, $t_y, $color, $ttf, $text);
imagepng($img);
imagedestroy($img);
?>
geht aber schon???
kann mir das mal einer erklären?
bzw mir sagen wieso das ned funkt
DANKE