Hallo Ben,
erstmal danke für den Hinweis.
Habe jetzt versucht die Datei über das <img scr> tag einzubauen.
Bekomme jetzt schon mal keine Sonderzeichen mehr gemeldet dafür aber das berühmte rote Kreuz, daß das Bild nicht gefunden wurde....
Das Script selber geht so los:
<?php
// PhpBarGraph Example Version 2.3
// Bar Graph Generator Example for PHP
// Written By TJ Hunter (tjhunter@ruistech.com)
// Released Under the GNU Public License.
//
http://www.ruistech.com/phpBarGraph
$img = "png";
// We need to be able to use the bar graph class in phpBarGraph2.php
@include("phpBarGraph2.php");
if (!class_exists("PhpBarGraph"))
{
die("There was an error loading the PhpBarGraph class.");
}
// Setup how high and how wide the ouput image is
$imageHeight = 500;
$imageWidth = 600;
// Create a new Image
$image = ImageCreate($imageWidth, $imageHeight);
// Fill it with your favorite background color..
$backgroundColor = ImageColorAllocate($image, 50, 50, 50);
ImageFill($image, 0, 0, $backgroundColor);
// Interlace the image..
Imageinterlace($image, 1);
etc.
die Header angabe kommt erst ganz am Schluß des Scriptes??
// Output the Image to the browser in GIF or PNG format
if ($img == "png")
{
header("Content-type: image/png");
ImagePNG($image);
}
elseif ($img == "gif")
{
header("Content-type: image/gif");
ImageGif($image);
}
// Destroy the image.
Imagedestroy($image);
Ist das so richtig, oder was muß ich ganz am Anfang noch weglöschen? Also vor<?php steht nichts, kein Leerzeichen oder sonstiges...
Grüße,
Moses
NACHTRAG: wenn ich mir den Quelltext anschaue, hat er interessanterweise eine Leerzeile am Anfang!?