May 2021 2 155 Report
Problem mit jpgraph -Bildladefehler (immer nur ein rotes x)?

ich hab zwei files

graphic.php

mit dem folgenden code

<?php

require_once ("src/jpgraph.php");

require_once ("src/jpgraph_pie.php");

$data = array(40,60,21,33);

$graph = new PieGraph(300,200,"auto");

$graph->SetShadow();

$graph->title->Set("A simple Pie plot");

$graph->title->SetFont(FF_FONT1,FS_BOLD);

$p1 = new PiePlot($data);

$p1->SetLegends($gDateLocale->GetShortMonth());

$p1->SetCenter(0.4);

header('Content-type: image/jpeg');

$graph->Add($p1);

$graph->Stroke();

?>

und noch eines wo ich nur das bild aufrufe

image.php

<img src="graphic.php" width="300" height="200">

wie schon in der Frage gesagt funktioniert das net.

hat jem vll eine idee?


Please enter comments
Please enter your name.
Please enter the correct email address.
You must agree before submitting.

Answers & Comments




Helpful Social

Copyright © 2024 Q2A.MX - All rights reserved.