Hi
Ja aber vielleicht hilft mir schon weiter wenn ich weiss was di zwei Dollar bedeuten?
Aber danke für das 1
Hier jetzt der ganze Code:
<?php
// Bilderzeugung - button.php
header("Content-Type: image/png");
if(!$bgcol or !isset($bgcol)) { $bgcol = "white"; } // Standardhintergrund
if(!$fcol or !isset($fcol)) { $fcol = "black"; } // Standardschriftfarbe
if(!$bcol or !isset($bcol)) { $bcol = "black"; } // Standardrand
if(!$text or !isset($text)) { $text = "Fehler"; } // Standardtext
$pic_width = 120; // Bildbreite
$pic_height = 15; // Bildhoehe
$font_type = 3; // Schriftart
$font_height = 8; // Schriftgroesse in pt
$image = imagecreate($pic_width, $pic_height);
$black = imagecolorallocate($image, 0, 0, 0);
$white = imagecolorallocate($image, 255, 255, 255);
$grey = imagecolorallocate($image, 204, 204, 204);
$red = imagecolorallocate($image, 255, 0, 0);
$green = imagecolorallocate($image, 0, 255, 0);
$blue = imagecolorallocate($image, 0, 0, 255);
imagefill($image, 0, 0, $$bgcol);
imageline($image, 0, $pic_height-1, $pic_width-1, $pic_height-1, $$bcol);
imageline($image, $pic_width-1, 0, $pic_width-1, $pic_height-1, $$bcol);
imagestring($image, $font_type, 10, 0, $text, $$fcol);
imagepng($image);
imagedestroy($image);
?>