Hallo !
Ich hab mal versucht, auf ein Bild per GD und TTF Font etwas zu schreiben.
Script ist wie folgt :
	
Folgender Fehler tritt auf :
	
		
Dann hab ich es auf Webspace mit "Safe Mode == Off" Probiert und da funzt es. D.h. er stört sich im Safe Mode daran, das ich den FontPath setzen will. Gibt es da ne alternativ irgendwas ? Bin ratlos.
							
						
					Ich hab mal versucht, auf ein Bild per GD und TTF Font etwas zu schreiben.
Script ist wie folgt :
PHP-Code:
	
	
<?php
putenv('GDFONTPATH=fonts');
Header("Content-type: image/png");
$bgimage = "images/zertifikat_sat_2004.png";
$im = ImageCreateFrompng("$bgimage");
##
$font = "BEAUE___.TTF";
$fontsize = "43";
##
$schwarz = @ImageColorAllocate($im,  0,  0,  0);
$grau    = @ImageColorAllocate($im,102,102,102);
##
$text[0] = "name";
$text[1] = "19654";
##
ImageTTFText($im, $fontsize, 0, 120, 260, $schwarz, $font, $text[0]);
##
$bild = Imagepng($im);
imagedestroy($im);
?>
			
			
				Safe Mode warning: Cannot set environment variable 'GDFONTPATH' - it's not in the allowed list in ..url ... on line 2
			
		
	 
          
Kommentar